public static void DumpTo(this CSharpRefKind refKind, CodeWriter writer) { switch (refKind) { case CSharpRefKind.None: break; case CSharpRefKind.In: writer.Write("in "); break; case CSharpRefKind.Out: writer.Write("out "); break; case CSharpRefKind.Ref: writer.Write("ref "); break; case CSharpRefKind.RefReadOnly: writer.Write("ref readonly "); break; default: throw new ArgumentOutOfRangeException(nameof(refKind), refKind, null); } }
public CSharpRefType(CSharpRefKind refKind, CSharpType elementType) : base(elementType) { Kind = refKind; }