ImageMagick.UTF8Marshaler.CreateInstance C# (CSharp) Метод

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

static private CreateInstance ( string value ) : INativeInstance
value string
Результат INativeInstance
    internal static INativeInstance CreateInstance(string value)
    {
      return new UTF8Marshaler(value);
    }

Usage Example

Пример #1
0
   public void GetInfoByName(string name)
   {
       using (INativeInstance nameNative = UTF8Marshaler.CreateInstance(name))
       {
           IntPtr exception = IntPtr.Zero;
           IntPtr result;
 #if ANYCPU
           if (NativeLibrary.Is64Bit)
 #endif
 #if WIN64 || ANYCPU
           result = NativeMethods.X64.MagickFormatInfo_GetInfoByName(nameNative.Instance, out exception);
 #endif
 #if ANYCPU
           else
 #endif
 #if !WIN64 || ANYCPU
           result = NativeMethods.X86.MagickFormatInfo_GetInfoByName(nameNative.Instance, out exception);
 #endif
           CheckException(exception);
           Instance = result;
       }
   }
All Usage Examples Of ImageMagick.UTF8Marshaler::CreateInstance