19 references to GetGenericParameters
Microsoft.CodeAnalysis (2)
MetadataReader\PEModule.cs (2)
578return MetadataReader.GetTypeDefinition(typeDef).GetGenericParameters(); 584return MetadataReader.GetTypeDefinition(typeDef).GetGenericParameters().Count > 0;
Microsoft.CodeAnalysis.CSharp (1)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
207foreach (var typeParameterHandle in def.GetGenericParameters())
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_Nullable.cs (7)
1347var typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]); 1351typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]); 1412var typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]); 1460var typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]); 1464typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]); 1518var typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[1]); 4864var typeParameter = reader.GetGenericParameter(typeDef.GetGenericParameters()[0]);
Attributes\AttributeTests_Tuples.cs (1)
869var typeParams = def.GetGenericParameters();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
MetadataResolver.cs (3)
122return typeDef.GetGenericParameters().Count; 136int declaringTypeParameterCount = declaringTypeHandle.IsNil ? 0 : declaringType.GetGenericParameters().Count; 137if (!MatchesTypeParameterCount(typeParameters, typeDef.GetGenericParameters(), declaringTypeParameterCount))
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
FunctionResolverTestBase.cs (3)
45var allTypeParameters = typeDef.GetGenericParameters(); 89declaringTypeArity = declaringType.GetGenericParameters().Count; 100AppendTypeParameters(builder, DecodeTypeParameters(reader, declaringTypeArity, typeDef.GetGenericParameters()));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_Tuples.vb (1)
707Dim typeParams = def.GetGenericParameters()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
86GenericParameterHandleCollection gps = TypeDefinition.GetGenericParameters();