FileGenerator.Native.NativeClassGenerator.WriteNativeMethodsStaticConstructor C# (CSharp) Method

WriteNativeMethodsStaticConstructor() private method

private WriteNativeMethodsStaticConstructor ( ) : void
return void
    private void WriteNativeMethodsStaticConstructor()
    {
      WriteLine("#if ANYCPU");
      WriteLine(@"[SuppressMessage(""Microsoft.Performance"", ""CA1810: InitializeReferenceTypeStaticFieldsInline"", Scope = ""member"", Target = ""ImageMagick." + Class.Name + @"+NativeMethods." + _Platform + @"#.cctor()"")]");
      WriteLine("static " + _Platform + "() { NativeLibraryLoader.Load(); }");
      WriteLine("#endif");
    }