public static RTNamespace Deserialize() { var @namespace = new RTNamespace { name = binary_reader.ReadString() }; var count = binary_reader.ReadInt32(); for (var i = 0; i < count; i++) { @namespace.classes.Add(RTClass.Deserialize()); } return(@namespace); }
public static RTClass Deserialize() { var @class = new RTClass { name = binary_reader.ReadString(), atttibute = (ElementAtttibute)binary_reader.ReadInt32() }; var count = binary_reader.ReadInt32(); for (var i = 0; i < count; i++) { @class.methods.Add(RTMethod.Deserialize()); } return(@class); }