6 references to System_Runtime_CompilerServices_Unsafe
Microsoft.Interop.ComInterfaceGenerator (2)
Marshallers\StructAsHResultMarshallerFactory.cs (2)
36
writer.WriteLine($"{unmanaged} = {TypeNames.GlobalAlias}{TypeNames.
System_Runtime_CompilerServices_Unsafe
}.BitCast<{info.ManagedType.FullTypeName}, {AsNativeType(info).FullTypeName}>({managed});");
42
writer.WriteLine($"{managed} = {TypeNames.GlobalAlias}{TypeNames.
System_Runtime_CompilerServices_Unsafe
}.BitCast<{AsNativeType(info).FullTypeName}, {info.ManagedType.FullTypeName}>({unmanaged});");
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Marshaling\BaseJSGenerator.cs (1)
38
writer.WriteLine($"{TypeNames.GlobalAlias}{TypeNames.
System_Runtime_CompilerServices_Unsafe
}.SkipInit(out {js});");
Marshaling\ImplicitArgumentGenerator.cs (1)
13
writer.WriteLine($"{TypeNames.GlobalAlias}{TypeNames.
System_Runtime_CompilerServices_Unsafe
}.SkipInit(out {js});");
Microsoft.Interop.SourceGeneration (2)
Marshalling\ElementsMarshalling.cs (1)
25
protected const string UnsafeType = TypeNames.GlobalAlias + TypeNames.
System_Runtime_CompilerServices_Unsafe
;
Marshalling\MarshallerHelpers.cs (1)
227
return $"{TypeNames.GlobalAlias}{TypeNames.
System_Runtime_CompilerServices_Unsafe
}.SkipInit(out {info.InstanceIdentifier});";