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 < dictionary.Count; i++) { dictionary.PinyinUnitTable.Add(PinyinUnit.Deserialize(binaryReader)); } binaryReader.ReadInt16(); return(dictionary); }
internal static PinyinDictionary Deserialize(BinaryReader binaryReader) { PinyinDictionary pinyinDictionary = new PinyinDictionary(); binaryReader.ReadInt32(); pinyinDictionary.Length = binaryReader.ReadInt16(); pinyinDictionary.Count = binaryReader.ReadInt16(); pinyinDictionary.Offset = binaryReader.ReadInt16(); binaryReader.ReadBytes(8); pinyinDictionary.PinyinUnitTable = new List <PinyinUnit>(); for (int index = 0; index < (int)pinyinDictionary.Count; ++index) { pinyinDictionary.PinyinUnitTable.Add(PinyinUnit.Deserialize(binaryReader)); } int num = (int)binaryReader.ReadInt16(); return(pinyinDictionary); }