public override void InternalFromBinary(IBinaryRawReader reader) { base.InternalFromBinary(reader); var version = VersionSerializationHelper.CheckVersionByte(reader, VERSION_NUMBER); if (version == 1) { SiteModelID = reader.ReadGuid() ?? Guid.Empty; OTGCellBottomLeftX = reader.ReadInt(); OTGCellBottomLeftY = reader.ReadInt(); CellSize = reader.ReadDouble(); SurveyedSurfacePatchType = (SurveyedSurfacePatchType)reader.ReadByte(); if (reader.ReadBoolean()) { ProcessingMap = new SubGridTreeBitmapSubGridBits(SubGridBitsCreationOptions.Unfilled); ProcessingMap.FromBytes(reader.ReadByteArray()); } if (reader.ReadBoolean()) { var count = reader.ReadInt(); IncludedSurveyedSurfaces = new Guid[count]; for (int i = 0; i < count; i++) { IncludedSurveyedSurfaces[i] = reader.ReadGuid() ?? Guid.Empty; } } } }