public static ASPTrayBase ReadOne(string filePath, IMyLog log) { if (!s_MsgFile_IsOld(filePath)) { using (BinaryReader br = new BinaryReader(OpenFile.ForRead(filePath, true, false, log))) { return(ASPTrayBase.ReadOne(br)); } } return(null); }
private void NetFrom_V2(BinaryReader br) { Int32 count = br.ReadInt32(); for (Int32 i = 0; i < count; i++) { ASPTrayBase f1 = ASPTrayBase.ReadOne(br); if (f1 != null) { ObjectList.Add(f1); } } }