15 references to Handle
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
687var methodDef = mdReader.GetMethodDefinition((MethodDefinitionHandle)MetadataTokens.Handle(peEntryPointToken));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1988return "\"" + reader.GetUserString((UserStringHandle)MetadataTokens.Handle((int)token)) + "\"";
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
MethodContextReuseConstraints.cs (2)
24Debug.Assert(MetadataTokens.Handle(methodToken).Kind == HandleKind.MethodDefinition); 36Debug.Assert(MetadataTokens.Handle(methodToken).Kind == HandleKind.MethodDefinition);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\PDBTests.vb (1)
155Dim methodDef = mdReader.GetMethodDefinition(CType(MetadataTokens.Handle(peEntryPointToken), MethodDefinitionHandle))
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (5)
CompilationExtensions.vb (1)
25Return [GetType](compilation.GetModule(moduleVersionId), CType(MetadataTokens.Handle(typeToken), TypeDefinitionHandle))
EvaluationContext.vb (3)
79Debug.Assert(MetadataTokens.Handle(typeToken).Kind = HandleKind.TypeDefinition) 154Dim methodHandle = CType(MetadataTokens.Handle(methodToken), MethodDefinitionHandle) 156Dim localSignatureHandle = If(localSignatureToken <> 0, CType(MetadataTokens.Handle(localSignatureToken), StandaloneSignatureHandle), Nothing)
VisualBasicInstructionDecoder.vb (1)
117Dim methodHandle = CType(MetadataTokens.Handle(instructionAddress.MethodId.Token), MethodDefinitionHandle)
Roslyn.Test.PdbUtilities (3)
Shared\DummyMetadataImport.cs (3)
63var sig = _metadataReaderOpt.GetStandaloneSignature((StandaloneSignatureHandle)MetadataTokens.Handle(tkSignature)); 89var handle = (TypeDefinitionHandle)MetadataTokens.Handle(typeDefinition); 128var handle = (TypeReferenceHandle)MetadataTokens.Handle(typeReference);
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
61Handle handle = MetadataTokens.Handle(methodToken);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
91public static Handle ToHandle(this int token) => MetadataTokens.Handle(token);