internal MetadataLocation( IBinaryDocument binaryDocument, TableIndices tableIndex, uint rowId ) { this.binaryDocument = binaryDocument; this.tableIndex = tableIndex; this.rowId = rowId; }
internal void AddMetadataError( TableIndices tableIndex, uint rowId, MetadataReaderErrorKind errorKind ) { foreach (MetadataReaderErrorMessage errMessage in this.ErrorList.GetValuesFor((uint)errorKind)) { MetadataLocation /*?*/ mdLocation = errMessage.Location as MetadataLocation; if (mdLocation == null) { continue; } if (mdLocation.rowId == rowId && mdLocation.tableIndex == tableIndex) { return; } } this.AddMetadataReaderErrorMessage(new MetadataReaderErrorMessage(this.MetadataReader.ErrorsReporter, new MetadataLocation(this.BinaryDocument, tableIndex, rowId), errorKind)); }
internal void AddMetadataError( TableIndices tableIndex, uint rowId, MetadataReaderErrorKind errorKind ) { foreach (MetadataReaderErrorMessage errMessage in this.ErrorList.GetValuesFor((uint)errorKind)) { MetadataLocation/*?*/ mdLocation = errMessage.Location as MetadataLocation; if (mdLocation == null) { continue; } if (mdLocation.rowId == rowId && mdLocation.tableIndex == tableIndex) { return; } } this.AddMetadataReaderErrorMessage(new MetadataReaderErrorMessage(this.MetadataReader.ErrorsReporter, new MetadataLocation(this.BinaryDocument, tableIndex, rowId), errorKind)); }