コード例 #1
0
ファイル: UnsafeCode.cs プロジェクト: luiz117/ILSpy
 public unsafe void FixedCustomReferenceTypeNoPointerUse(CustomPinnable mem)
 {
     fixed(int *ptr = mem)
     {
         Console.WriteLine("Hello World!");
     }
 }
コード例 #2
0
ファイル: UnsafeCode.cs プロジェクト: luiz117/ILSpy
 public unsafe void FixedCustomReferenceTypeExplicitGetPinnableReference(CustomPinnable mem)
 {
     fixed(int *ptr = &mem.GetPinnableReference())
     {
         UsePointer(ptr);
     }
 }
コード例 #3
0
ファイル: UnsafeCode.cs プロジェクト: luiz117/ILSpy
 public unsafe void FixedCustomReferenceType(CustomPinnable mem)
 {
     fixed(int *ptr = mem)
     {
         UsePointer(ptr);
     }
 }