Example #1
0
        //^ [Confined, MustOverride]
        public override bool Equals(object /*?*/ obj)
        {
            MetadataLocation /*?*/ metadataLocation = obj as MetadataLocation;

            if (metadataLocation == null)
            {
                return(false);
            }
            if (this.rowId != metadataLocation.rowId)
            {
                return(false);
            }
            if (this.tableIndex != metadataLocation.tableIndex)
            {
                return(false);
            }
            return(this.binaryDocument.Location.Equals(metadataLocation.binaryDocument.Location));
        }
Example #2
0
 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));
 }