Marshalling\ByValueMarshalKindSupportDescriptor.cs (9)
43/// Provides an implementation of <see cref="IMarshallingGenerator.SupportsByValueMarshalKind(ByValueContentsMarshalKind, TypePositionInfo, StubCodeContext, out GeneratorDiagnostic?)"/> through <see cref="GetSupport(ByValueContentsMarshalKind, TypePositionInfo, StubCodeContext, out GeneratorDiagnostic?)"/>
72public ByValueMarshalKindSupport GetSupport(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, StubCodeContext context, out GeneratorDiagnostic? diagnostic)
77if (marshalKind != ByValueContentsMarshalKind.Default)
92Debug.Assert(marshalKind is ByValueContentsMarshalKind.Default);
99ByValueContentsMarshalKind.Default => DefaultSupport.GetSupport(info, context, out diagnostic),
100ByValueContentsMarshalKind.In => InSupport.GetSupport(info, context, out diagnostic),
101ByValueContentsMarshalKind.Out => OutSupport.GetSupport(info, context, out diagnostic),
102ByValueContentsMarshalKind.InOut => InOutSupport.GetSupport(info, context, out diagnostic),