CreateInstance() статический приватный Метод

static private CreateInstance ( ) : INativeInstance
Результат INativeInstance
Пример #1
0
 public static MagickRectangle?FromPageSize(string?value)
 {
     using (var valueNative = UTF8Marshaler.CreateInstance(value))
     {
         IntPtr result;
         #if PLATFORM_AnyCPU
         if (OperatingSystem.IsArm64)
         #endif
         #if PLATFORM_arm64 || PLATFORM_AnyCPU
         result = NativeMethods.ARM64.MagickRectangle_FromPageSize(valueNative.Instance);
         #endif
         #if PLATFORM_AnyCPU
         else if (OperatingSystem.Is64Bit)
         #endif
         #if PLATFORM_x64 || PLATFORM_AnyCPU
         result = NativeMethods.X64.MagickRectangle_FromPageSize(valueNative.Instance);
         #endif
         #if PLATFORM_AnyCPU
         else
         #endif
         #if PLATFORM_x86 || PLATFORM_AnyCPU
         result = NativeMethods.X86.MagickRectangle_FromPageSize(valueNative.Instance);
         #endif
         return(MagickRectangle.CreateInstance(result));
     }
 }