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) { }
protected NativeCodeGenerator(MagickClass magickClass) { Class = magickClass; }