Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC#ref struct and ref returnsSingle-choice MCQ

A struct contains a ref field (a ref T member, allowed since C# 11). What does this force about the struct, and why?

public struct Holder<T> { public ref T Value; // ref field }