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

            if (metadataStreamLocation == null)
            {
                return(false);
            }
            if (this.offset != metadataStreamLocation.offset)
            {
                return(false);
            }
            if (!this.streamName.Equals(metadataStreamLocation.streamName))
            {
                return(false);
            }
            return(this.binaryDocument.Location.Equals(metadataStreamLocation.binaryDocument.Location));
        }
Beispiel #2
0
 internal void AddMetadataStreamError(
     string streamName,
     uint offset,
     MetadataReaderErrorKind errorKind
     )
 {
     foreach (MetadataReaderErrorMessage errMessage in this.ErrorList.GetValuesFor((uint)errorKind))
     {
         MetadataStreamLocation /*?*/ mdStreamLocation = errMessage.Location as MetadataStreamLocation;
         if (mdStreamLocation == null)
         {
             continue;
         }
         if (mdStreamLocation.offset == offset && mdStreamLocation.streamName.Equals(streamName))
         {
             return;
         }
     }
     this.AddMetadataReaderErrorMessage(new MetadataReaderErrorMessage(this.MetadataReader.ErrorsReporter, new MetadataStreamLocation(this.BinaryDocument, streamName, offset), errorKind));
 }