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