Пример #1
0
        private MagickClass CreateClass(FileInfo file)
        {
            using (var stream = file.OpenRead())
            {
                stream.Position = Encoding.UTF8.GetPreamble().Length;

                MagickClass magickClass = (MagickClass)_Serializer.ReadObject(stream);
                magickClass.Name     = file.Name.Replace(".json", "");
                magickClass.FileName = file.Directory.FullName + "\\" + magickClass.Name + ".cs";

                return(magickClass);
            }
        }
 public NativeClassGenerator(MagickClass magickClass)
     : base(magickClass)
 {
 }
Пример #3
0
 protected NativeCodeGenerator(MagickClass magickClass)
 {
     Class = magickClass;
 }