internal static PinyinDictionary Deserialize(BinaryReader binaryReader) { PinyinDictionary dictionary = new PinyinDictionary(); binaryReader.ReadInt32(); dictionary.Length = binaryReader.ReadInt16(); dictionary.Count = binaryReader.ReadInt16(); dictionary.Offset = binaryReader.ReadInt16(); binaryReader.ReadBytes(8); dictionary.PinyinUnitTable = new List <PinyinUnit>(); for (int i = 0; i < (int)dictionary.Count; i++) { dictionary.PinyinUnitTable.Add(PinyinUnit.Deserialize(binaryReader)); } binaryReader.ReadInt16(); return(dictionary); }