Implemented interface member:
property
Handle
Microsoft.DotNet.ILAssembler.EntityRegistry.IHasHandle.Handle
2 overrides of Handle
Microsoft.DotNet.ILAssembler (2)
EntityRegistry.cs (2)
2000public override EntityHandle Handle => MetadataTokens.EntityHandle(Token); 2141public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
1 write to Handle
Microsoft.DotNet.ILAssembler (1)
EntityRegistry.cs (1)
1965Handle = token;
76 references to Handle
Microsoft.DotNet.ILAssembler (76)
Actions\GrammarActions.BuildImage.cs (2)
607MetadataTokens.GetToken(association.Method.Handle); 830AddLocalScopes((MethodDefinitionHandle)method.Handle, method.DebugInfo.LocalScopes);
Actions\GrammarActions.Instructions.References.cs (1)
96MaterializeCalliSignature(context.Value)).Handle);
Actions\GrammarActions.Types.References.cs (3)
106: new EntityRegistry.FakeTypeEntity(resolvedToken.Handle); 155_entityRegistry.GetOrCreateAssemblyReference(assembly.AssemblyName, _ => { }).Handle), 166: new EntityRegistry.FakeTypeEntity(module.Handle);
BlobBuilderExtensions.cs (1)
95builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(entity.Handle));
EntityRegistry.cs (68)
179var owner1 = gp1.Owner!.Handle; 180var owner2 = gp2.Owner!.Handle; 200var owner1 = c1.Owner!.Handle; 201var owner2 = c2.Owner!.Handle; 255EntityBase scope => scope.Handle 270type.BaseType is null ? default : type.BaseType.Handle, 277(TypeDefinitionHandle)type.Handle, 283(TypeDefinitionHandle)type.Handle, 291(TypeDefinitionHandle)type.Handle, 298builder.AddNestedType((TypeDefinitionHandle)type.Handle, (TypeDefinitionHandle)type.ContainingType.Handle); 327builder.AddFieldLayout((FieldDefinitionHandle)fieldDef.Handle, fieldDef.Offset.Value); 332builder.AddFieldRelativeVirtualAddress((FieldDefinitionHandle)fieldDef.Handle, dataLocation.Offset); 338builder.AddMarshallingDescriptor(fieldDef.Handle, builder.GetOrAddBlob(fieldDef.MarshallingDescriptor)); 343builder.AddConstant(fieldDef.Handle, fieldDef.ConstantValue); 361? (StandaloneSignatureHandle)methodDef.LocalsSignature.Handle 419(MethodDefinitionHandle)methodDef.Handle, 422(ModuleReferenceHandle)methodDef.MethodImportInformation.Value.ModuleName.Handle); 444builder.AddMarshallingDescriptor(param.Handle, builder.GetOrAddBlob(param.MarshallingDescriptor)); 449builder.AddConstant(param.Handle, param.ConstantValue); 456(TypeDefinitionHandle)impl.Type.Handle, 457impl.InterfaceType is FakeTypeEntity fakeType ? fakeType.TypeColumnHandle : impl.InterfaceType.Handle); 463(TypeDefinitionHandle)impl.Type.Handle, 464impl.MethodBody.Handle, 465impl.MethodDeclaration.Handle); 471declSecurity.Parent?.Handle ?? default, 479|| customAttr.Constructor.Handle.IsNil) 488{ Handle: var h } => h, 493customAttr.Constructor.Handle, 508evt.Type?.Handle ?? default(TypeDefinitionHandle)); 512if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 514builder.AddMethodSemantics(evt.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 528if (accessor.Method.Handle.Kind == HandleKind.MethodDefinition) 530builder.AddMethodSemantics(prop.Handle, accessor.Semantic, (MethodDefinitionHandle)accessor.Method.Handle); 536builder.AddConstant(prop.Handle, prop.ConstantValue); 589exportedType.Implementation.Handle, 598resource.Implementation?.Handle ?? default, 607genericParam.Owner!.Handle, 616(GenericParameterHandle)constraint.Owner!.Handle, 617constraint.BaseType.Handle); 644if (!item.Handle.IsNil) 646return item.Handle; 655if (!item.Handle.IsNil) 657return item.Handle; 665if (otherList.Count != 0 && !otherList[otherList.Count - 1].Handle.IsNil) 667return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1); 1276return new BlobOrHandle(_typeSpecifications[row - 1].Handle, rawTypeKind == (byte)SignatureTypeKind.ValueType); 1317((IHasHandle)typeRef).SetHandle(nestedTypeDef.Handle); 1332((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1345((IHasHandle)typeRef).SetHandle(typeDef.Handle); 1600if (memberRef.Handle.Kind is HandleKind.MethodDefinition or HandleKind.FieldDefinition) 1606if (memberRef.Parent.Handle.Kind == HandleKind.MethodDefinition) 1608var method = (MethodDefinitionEntity)GetSeenEntities(TableIndex.MethodDef)[MetadataTokens.GetRowNumber(memberRef.Parent.Handle) - 1]; 1615(EntityHandle Parent, StringHandle Name, BlobHandle Signature) key = (memberRef.Parent.Handle, builder.GetOrAddString(name), 1639(methodSpec.Parent.Handle, builder.GetOrAddBlob(RewriteMethodSpecBlob(methodSpec.Signature, rewriter))); 1695case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1697var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1703((IHasHandle)memberRef).SetHandle(method.Handle); 1722((IHasHandle)memberRef).SetHandle(method.Handle); 1737case TypeEntity { Handle.Kind: HandleKind.TypeDefinition } type: 1739var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1745((IHasHandle)memberRef).SetHandle(field.Handle); 1960writer.WriteInt32(MetadataTokens.GetToken(Handle)); 1986alias.SetHandle(Handle); 2141public override EntityHandle Handle => base.Handle.IsNil ? PseudoHandle : base.Handle;
MethodBodyWriter.cs (1)
276EntityRegistry.ExceptionRegion.CatchRegion clause => (ExceptionRegionKind.Catch, MetadataTokens.GetToken(clause.CatchType.Handle)),