public override bool Equals(object obj) { bool result = false; EsfFile file = obj as EsfFile; if (file != null) { result = Codec.ID == file.Codec.ID; result &= (RootNode as ParentNode).Equals(file.RootNode); } return(result); }
public static void WriteEsfFile(string filename, EsfFile file) { using (BinaryWriter writer = new BinaryWriter(File.Create(filename))) { file.Codec.EncodeRootNode(writer, file.RootNode); } }