예제 #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);
     }
 }