12 references to DisableRuntimeMarshalling
Microsoft.Interop.ComInterfaceGenerator (6)
ComInterfaceGeneratorHelpers.cs (3)
13
private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.
DisableRuntimeMarshalling
, MarshalDirection.ManagedToUnmanaged);
14
private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.
DisableRuntimeMarshalling
, MarshalDirection.UnmanagedToManaged);
27
=> (env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
), direction) switch
VtableIndexStubGeneratorHelpers.cs (3)
13
private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.
DisableRuntimeMarshalling
, MarshalDirection.ManagedToUnmanaged);
14
private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.
DisableRuntimeMarshalling
, MarshalDirection.UnmanagedToManaged);
25
=> (env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
), direction) switch
Microsoft.Interop.SourceGeneration (6)
CompilationExtensions.cs (1)
23
flags |= EnvironmentFlags.
DisableRuntimeMarshalling
;
IncrementalGeneratorInitializationContextExtensions.cs (1)
40
.Select((topLevelAttrs, ct) => !topLevelAttrs.IsEmpty ? EnvironmentFlags.
DisableRuntimeMarshalling
: EnvironmentFlags.None);
Marshalling\DefaultMarshallingGeneratorResolver.cs (4)
30
new BlittableMarshallerResolver(env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
)),
48
env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
),
62
env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
),
75
new CharMarshallingGeneratorResolver(useBlittableMarshallerForUtf16: env.HasFlag(EnvironmentFlags.
DisableRuntimeMarshalling
), stringMarshallingAttribute),