44 references to SignatureBehavior
Microsoft.Interop.ComInterfaceGenerator (13)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (2)
65public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.NativeType;
Marshallers\KeepAliveThisMarshaller.cs (2)
33public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.NativeType;
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (4)
56public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.NativeType; 93public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.NativeType;
Marshallers\ObjectUnwrapperResolver.cs (2)
60public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.NativeType;
Marshallers\StructAsHResultMarshallerFactory.cs (3)
79public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 81return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Marshaling\BaseJSGenerator.cs (1)
30public SignatureBehavior NativeSignatureBehavior => _inner.NativeSignatureBehavior;
Marshaling\EmptyJSGenerator.cs (2)
14public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => SignatureBehavior.ManagedTypeAndAttributes;
Microsoft.Interop.SourceGeneration (28)
Marshalling\BlittableMarshaller.cs (3)
19public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 21return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Marshalling\BoolMarshaller.cs (3)
35public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 37return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Marshalling\CharMarshaller.cs (3)
42public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 44return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Marshalling\CustomTypeMarshallingGenerator.cs (3)
20public SignatureBehavior NativeSignatureBehavior => TypeInfo.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Marshalling\DelegateMarshaller.cs (3)
20public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 22return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
Marshalling\Forwarder.cs (2)
17public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) 19return SignatureBehavior.ManagedTypeAndAttributes;
Marshalling\MarshallingGenerator.cs (2)
103SignatureBehavior NativeSignatureBehavior { get; } 168public SignatureBehavior NativeSignatureBehavior => unbound.GetNativeSignatureBehavior(TypeInfo);
Marshalling\MarshallingGeneratorExtensions.cs (8)
24SignatureBehavior.ManagedTypeAndAttributes => generator.TypeInfo.ManagedType.Syntax, 25SignatureBehavior.NativeType => generator.NativeType.Syntax, 26SignatureBehavior.PointerToNativeType => PointerType(generator.NativeType.Syntax), 38if (generator.NativeSignatureBehavior != SignatureBehavior.ManagedTypeAndAttributes) 61SignatureBehavior behavior = generator.NativeSignatureBehavior; 62if (behavior == SignatureBehavior.ManagedTypeAndAttributes) 98SignatureBehavior.NativeType => generator.NativeType.Syntax, 99SignatureBehavior.PointerToNativeType => PointerType(generator.NativeType.Syntax),
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
21public SignatureBehavior NativeSignatureBehavior => innerMarshallingGenerator.NativeSignatureBehavior;