3 instantiations of MemberReferenceHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
866return new MemberReferenceHandle(rowId); 886return new MemberReferenceHandle(handle.RowId); 896return new MemberReferenceHandle(handle.RowId);
95 references to MemberReferenceHandle
BuildValidator (1)
Util.cs (1)
74var memberRef = reader.GetMemberReference((MemberReferenceHandle)attribute.Constructor);
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
449EntityHandle attributeMemberParent = mdReader.GetMemberReference((MemberReferenceHandle)attributeCtor).Parent;
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
207var attributeConstructor = reader.GetMemberReference((MemberReferenceHandle)attribute.Constructor);
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
944return reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent.TypeMatchesNameAndNamespace(@namespace, name, reader);
Microsoft.CodeAnalysis (21)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
429protected override MemberReferenceHandle GetOrAddMemberReferenceHandle(ITypeMemberReference reference)
MetadataReader\MetadataDecoder.cs (9)
1915MethodSymbol methodBodySymbol = GetMethodSymbolForMemberRef((MemberReferenceHandle)methodDebugHandle, implementingTypeSymbol); 1938methodSymbol = GetMethodSymbolForMemberRef((MemberReferenceHandle)implementedMethodHandle, implementingTypeSymbol); 2107internal abstract Symbol GetSymbolForMemberRef(MemberReferenceHandle memberRef, TypeSymbol implementingTypeSymbol = null, bool methodsOnly = false); 2109internal MethodSymbol GetMethodSymbolForMemberRef(MemberReferenceHandle methodRef, TypeSymbol implementingTypeSymbol) 2114internal FieldSymbol GetFieldSymbolForMemberRef(MemberReferenceHandle methodRef, TypeSymbol implementingTypeSymbol) 2238return GetSymbolForMemberRef((MemberReferenceHandle)token); 2251internal TypeSymbol GetMemberRefTypeSymbol(MemberReferenceHandle memberRef) 2288: GetMethodSymbolForMemberRef((MemberReferenceHandle)memberToken, container); 2299: GetFieldSymbolForMemberRef((MemberReferenceHandle)memberToken, container);
MetadataReader\PEModule.cs (8)
3058MemberReference memberRef = metadataReader.GetMemberReference((MemberReferenceHandle)attributeCtor); 3329return GetSignatureOrThrow(metadataReader, (MemberReferenceHandle)methodDefOrRef); 3355internal EntityHandle GetContainingTypeOrThrow(MemberReferenceHandle memberRef) 3427public string GetMemberRefNameOrThrow(MemberReferenceHandle memberRef) 3433private static string GetMemberRefNameOrThrow(MetadataReader metadataReader, MemberReferenceHandle memberRef) 3439internal BlobHandle GetSignatureOrThrow(MemberReferenceHandle memberRef) 3445private static BlobHandle GetSignatureOrThrow(MetadataReader metadataReader, MemberReferenceHandle memberRef) 3452MemberReferenceHandle memberRef,
PEWriter\FullMetadataWriter.cs (1)
255protected override MemberReferenceHandle GetOrAddMemberReferenceHandle(ITypeMemberReference reference)
PEWriter\MetadataWriter.cs (2)
320protected abstract MemberReferenceHandle GetOrAddMemberReferenceHandle(ITypeMemberReference reference); 920internal MemberReferenceHandle GetMemberReferenceHandle(ITypeMemberReference memberRef)
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (2)
127var memberRef = (MemberReferenceHandle)memberRefOrMethodDef;
Symbols\Metadata\PE\MetadataDecoder.cs (1)
531internal override Symbol GetSymbolForMemberRef(MemberReferenceHandle memberRef, TypeSymbol scope = null, bool methodsOnly = false)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12645var consoleWriteLineMemberRef = metadata.AddMemberReference( 12658var objectCtorMemberRef = metadata.AddMemberReference(
CodeGen\DestructorTests.cs (1)
792MemberReferenceHandle handleDestructorObject = peFileReader.MemberReferences.AsEnumerable().
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\MetadataReaderUtils.cs (3)
222parent = reader.GetMemberReference((MemberReferenceHandle)token).Parent; 358MemberReference member = reader.GetMemberReference((MemberReferenceHandle)handle); 475.Select(c => metadataReader.GetMemberReference((MemberReferenceHandle)c).Parent)
Metadata\MetadataValidation.cs (1)
32var container = metadataReader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
105Dim memberRef = CType(memberRefOrMethodDef, MemberReferenceHandle)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
459Friend Overrides Function GetSymbolForMemberRef(memberRef As MemberReferenceHandle, Optional scope As TypeSymbol = Nothing, Optional methodsOnly As Boolean = False) As Symbol
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
634var container = reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
RunTests (1)
AssemblyScheduler.cs (1)
356var ctor = metadataReader.GetMemberReference((MemberReferenceHandle)attribute.Constructor);
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
260EntityHandle container = reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent; 295signature = reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Signature;
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
957private MemberReferenceHandle AddMemberReference(string memberName, EntityHandle parent, BlobBuilder signature) =>
System.Reflection.Metadata (49)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
18/// <see cref="MemberReferenceHandle"/>, 48/// <param name="handle"><see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/></param> 103/// <param name="handle"><see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/></param> 145/// <see cref="MemberReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
34MemberReference reference = _reader.GetMemberReference((MemberReferenceHandle)constructor);
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (1)
134public void Call(MemberReferenceHandle methodHandle)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (8)
720/// <see cref="MemberReferenceHandle"/>, 738/// Custom attribute constructor: <see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/> 768/// <param name="method">Generic method: <see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/></param> 1040/// <param name="methodBody"><see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/> which provides the implementation.</param> 1041/// <param name="methodDeclaration"><see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/> the method being implemented.</param> 1074public MemberReferenceHandle AddMemberReference( 1086return MemberReferenceHandle.FromRowId(_memberRefTable.Count); 1377/// <see cref="MemberReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
385public static MemberReferenceHandle MemberReferenceHandle(int rowNumber) 387return Metadata.MemberReferenceHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (3)
658internal BlobHandle GetSignature(MemberReferenceHandle handle) 664internal StringHandle GetName(MemberReferenceHandle handle) 670internal EntityHandle GetClass(MemberReferenceHandle handle)
System\Reflection\Metadata\MetadataReader.cs (2)
1256public MemberReference GetMemberReference(MemberReferenceHandle handle) 1262private uint GetMemberRefTreatmentAndRowId(MemberReferenceHandle handle)
System\Reflection\Metadata\MetadataReader.WinMD.cs (5)
458ImplementsRedirectedInterface((MemberReferenceHandle)declaration, out isIClosableClose)) 570private uint CalculateMemberRefTreatmentAndRowId(MemberReferenceHandle handle) 605private bool ImplementsRedirectedInterface(MemberReferenceHandle memberRef, out bool isIDisposable) 716var attributeType = MemberRefTable.GetClass((MemberReferenceHandle)attributeCtor); 808EntityHandle typeDefOrRef = MemberRefTable.GetClass((MemberReferenceHandle)ctor);
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (1)
41/// The constructor (<see cref="MethodDefinitionHandle"/> or <see cref="MemberReferenceHandle"/>) of the custom attribute type.
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (7)
1519/// Represents a collection of <see cref="MemberReferenceHandle"/>. 1521public readonly struct MemberReferenceHandleCollection : IReadOnlyCollection<MemberReferenceHandle> 1541IEnumerator<MemberReferenceHandle> IEnumerable<MemberReferenceHandle>.GetEnumerator() 1551public struct Enumerator : IEnumerator<MemberReferenceHandle>, IEnumerator 1568public MemberReferenceHandle Current 1572return MemberReferenceHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
852public readonly struct MemberReferenceHandle : IEquatable<MemberReferenceHandle> 864internal static MemberReferenceHandle FromRowId(int rowId) 869public static implicit operator Handle(MemberReferenceHandle handle) 874public static implicit operator EntityHandle(MemberReferenceHandle handle) 879public static explicit operator MemberReferenceHandle(Handle handle) 889public static explicit operator MemberReferenceHandle(EntityHandle handle) 909public static bool operator ==(MemberReferenceHandle left, MemberReferenceHandle right) 916return obj is MemberReferenceHandle && ((MemberReferenceHandle)obj)._rowId == _rowId; 919public bool Equals(MemberReferenceHandle other) 929public static bool operator !=(MemberReferenceHandle left, MemberReferenceHandle right)
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
35private MemberReferenceHandle Handle 37get { return MemberReferenceHandle.FromRowId(RowId); }
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
72MemberReference mr = ((MemberReferenceHandle)ctorHandle).GetMemberReference(Reader);
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (2)
93MemberReferenceHandle mh = (MemberReferenceHandle)ctorHandle;
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
40public static MemberReference GetMemberReference(this MemberReferenceHandle handle, MetadataReader reader) => reader.GetMemberReference(handle);