Marshalling\ByValueMarshalKindSupportDescriptor.cs (17)
9public record struct ByValueMarshalKindSupportInfo(ByValueMarshalKindSupport Support, string? details)
11public ByValueMarshalKindSupport GetSupport(TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
15ByValueMarshalKindSupport.Supported => null,
16ByValueMarshalKindSupport.NotRecommended =>
21ByValueMarshalKindSupport.NotSupported =>
45DefaultSupport: new(ByValueMarshalKindSupport.Supported, null),
46InSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InAttributeNotSupportedOnByValueParameters),
47OutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.OutAttributeNotSupportedOnByValueParameters),
48InOutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InOutAttributeNotSupportedOnByValueParameters));
54DefaultSupport: new(ByValueMarshalKindSupport.NotRecommended, SR.PreferExplicitInOutAttributesOnArrays),
55InSupport: new(ByValueMarshalKindSupport.Supported, null),
56OutSupport: new(ByValueMarshalKindSupport.Supported, null),
57InOutSupport: new(ByValueMarshalKindSupport.Supported, null));
62public ByValueMarshalKindSupport GetSupport(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
73return ByValueMarshalKindSupport.NotSupported;
77return ByValueMarshalKindSupport.Supported;
84return ByValueMarshalKindSupport.Supported;