//^ [Confined, MustOverride] public override bool Equals(object /*?*/ obj) { DirectoryLocation /*?*/ directoryLocation = obj as DirectoryLocation; if (directoryLocation == null) { return(false); } if (this.offset != directoryLocation.offset) { return(false); } if (this.directory == directoryLocation.directory) { return(false); } return(this.binaryDocument.Location.Equals(directoryLocation.binaryDocument.Location)); }
internal void AddDirectoryError( Directories directory, uint offset, MetadataReaderErrorKind errorKind ) { foreach (MetadataReaderErrorMessage errMessage in this.ErrorList.GetValuesFor((uint)errorKind)) { DirectoryLocation /*?*/ directoryLocation = errMessage.Location as DirectoryLocation; if (directoryLocation == null) { continue; } if (directoryLocation.offset == offset && directoryLocation.directory == directory) { return; } } this.AddMetadataReaderErrorMessage(new MetadataReaderErrorMessage(this.MetadataReader.ErrorsReporter, new DirectoryLocation(this.BinaryDocument, directory, offset), errorKind)); }