internal EnumType(BinaryReader reader, int version, string language) : base(reader, version, language) { this.size = reader.ReadInt32(); this.kind = (Meta.EnumKind)Enum.ToObject(typeof(Meta.EnumKind), reader.ReadInt32()); this.hash = new OrderedDictionary(); for (int i = reader.ReadInt32(); i > 0; i--) { Meta.EnumItem item = new Meta.EnumItem(reader, version, language); this.hash.Add(item.ID, item); } }
public bool Find(string id, out Meta.EnumItem item) { item = this[id]; return(item != null); }