221 references to Construct
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Conversions.cs (2)
2194delegateType = Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T).Construct(delegateType); 2430stackAllocType = Compilation.GetWellKnownType(WellKnownType.System_Span_T).Construct(elementType);
Binder\Binder_Expressions.cs (6)
2626intType = nullableType.Construct(intType); 2627indexType = nullableType.Construct(indexType); 2706rangeType = nullableType.Construct(rangeType); 2733indexType = nullableType.Construct(indexType); 7413var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(GetSpecialType(SpecialType.System_Byte, diagnostics, node)); 11383accessType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node).Construct(accessType);
Binder\Binder_TupleOperators.cs (1)
421return nullableT.Construct(tuple);
Binder\Semantics\Conversions\Conversions.cs (1)
526var spanType_T = spanType.Construct(sourceExpression.ElementType);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
888return nullable.Construct(type);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
21return Compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2993resultType = expressionOfTType.Construct(resultType);
CodeGen\EmitStackAllocInitializer.cs (1)
74var readOnlySpan = spanGetItemDefinition.ContainingType.Construct(elementType);
Compilation\CSharpCompilation.cs (1)
1708constructedNullableInstance = this.GetSpecialType(SpecialType.System_Nullable_T).Construct(typeArgument);
Compiler\MethodBodySynthesizer.Lowered.cs (3)
151.Construct(F.SpecialType(SpecialType.System_Char)); 385NamedTypeSymbol constructedEqualityComparer = equalityComparerType.Construct(valueToHash.Type); 426var constructedEqualityComparer = equalityComparerType.Construct(field.Type);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (3)
265returnType = returnType.ConstructedFrom.Construct(resultType); 288builderType = builderType.ConstructedFrom.Construct(resultType); 297builderType = builderType.Construct(resultType);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (7)
130F.WellKnownType(WellKnownType.System_Threading_Tasks_Sources_ManualResetValueTaskSourceCore_T).Construct(boolType), 300.Construct(_currentField.Type); 480.Construct(_currentField.Type); 498.Construct(F.SpecialType(SpecialType.System_Boolean)); 523.Construct(F.SpecialType(SpecialType.System_Boolean)); 549.Construct(F.SpecialType(SpecialType.System_Boolean)); 653.Construct(_currentField.Type);
Lowering\AsyncRewriter\AsyncStateMachine.cs (3)
42interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T).Construct(elementType)); 46interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerator_T).Construct(elementType)); 49interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Sources_IValueTaskSource_T).Construct(compilation.GetSpecialType(SpecialType.System_Boolean)));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
513promotedType = _nullableType.Construct(promotedType); 608var promotedType = e.IsNullableType() ? _nullableType.Construct(PromotedType(e.GetNullableUnderlyingType())) : PromotedType(e); 707_nullableType.Construct(method.ReturnType) : method.ReturnType; 1063var args = _bound.Convert(_IEnumerableType.Construct(ExpressionType), Expressions(node.Arguments)); 1189promotedType = _nullableType.Construct(promotedType);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
258var IEnumerableOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_elementType.Type);
Lowering\IteratorRewriter\IteratorStateMachine.cs (2)
34interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(ElementType.Type)); 38interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ElementType.Type));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
953.Construct(_factory.SpecialType(SpecialType.System_Char)), 955.Construct(_factory.SpecialType(SpecialType.System_Char)),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
860var spanOfElementType = spanCtorArray.ContainingType.Construct(arrayType.ElementType);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
905userDefinedConversionRewrittenType = ((NamedTypeSymbol)rewrittenOperand.Type.OriginalDefinition).Construct(userDefinedConversionRewrittenType); 1120rewrittenOperandType = rewrittenOperandType.IsNullableType() ? ((NamedTypeSymbol)rewrittenOperandType.OriginalDefinition).Construct(typeFromUnderlying) : typeFromUnderlying;
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
100NamedTypeSymbol actionType = _factory.WellKnownType(WellKnownType.System_Action_T).Construct(tokenType); 141NamedTypeSymbol func2Type = _factory.WellKnownType(WellKnownType.System_Func_T2).Construct(eventType, tokenType);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
445var readOnlySpanOfChar = readOnlySpanCtorRefParamGeneric.ContainingType.Construct(charType);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
802type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type); 1125type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
643var callSiteType = callSiteTypeGeneric.Construct(new[] { delegateTypeOverMethodTypeParameters }); 712callSiteType = callSiteType.Construct(new[] { delegateTypeOverContainerTypeParameters }); 751return delegateType.Construct(delegateSignature); 789return synthesizedType.Construct(delegateSignature);
Symbols\ArrayTypeSymbol.cs (1)
526var newInterfaces = _interfaces.SelectAsArray((i, t) => i.OriginalDefinition.Construct(t), newElementType.Type);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
372var type = DeclaringCompilation.GetWellKnownType(WellKnownType.System_IEquatable_T).Construct(this);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
749var constructedEqualityComparer = equalityComparerType.Construct(fieldType);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
16this.SetReturnType(spanType.Construct(TypeParameters[1]));
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
16this.SetReturnType(spanType.Construct(TypeParameters[1]));
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
276returnType = taskT.Construct(resultType);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
49Construct(Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (31)
CodeGen\CodeGenReadonlyStructTests.cs (2)
858namedType = namedType.Construct(comp.ObjectType); 1022namedType = namedType.Construct(comp.ObjectType);
CodeGen\CodeGenTupleTest.cs (25)
5794var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType); 5829.Construct(intType, stringType, intType, stringType, intType, stringType, intType, vt0); 5854var vt1 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(intType); 5872var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType); 5907var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType); 5949var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType); 5971var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType); 5990var vt3 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T3).Construct(intType, stringType, intType); 6007var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType); 6027.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6028comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(stringType)); 6053.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6054comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(stringType)); 6080.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6081comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(stringType)); 6105.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6106comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, intType)); 6130.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6131comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, intType)); 6157var vt2 = originalVT2.Construct(intType, intType); 6162.Construct(intType, stringType, intType, stringType, intType, stringType, intType, 6189var vt2WithErrorType = vt2.Construct(intType, ErrorTypeSymbol.UnknownResultType); 6271var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType); 6272var vt3 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T3).Construct(intType, intType, intType); 6293var vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType);
CodeGen\DestructorTests.cs (4)
605var classJInt = classJ.Construct(intType); 610var classKInt = classK.Construct(intType); 615var classLInt = classL.Construct(intType); 620var classMInt = classM.Construct(intType);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
711var d_int = d.Construct(stInt);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Attributes\AttributeTests_Synthesized.cs (1)
648var c1OfInt = comp.GetTypeByMetadataName("C1`1").Construct(comp.GetSpecialType(SpecialType.System_Int32));
Semantics\CollectionExpressionTests.cs (11)
4990var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5045var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5099var listType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30146var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30206var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30417var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30441collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30476var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30498collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30530var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30552collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
Semantics\InlineArrayTests.cs (1)
192var bufferOfInt = buffer.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\DelegateTypeTests.cs (2)
14855verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Int32))), ConversionKind.FunctionType, ConversionKind.FunctionType); 14856verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Object))), ConversionKind.NoConversion, ConversionKind.NoConversion);
Semantics\DynamicTests.cs (1)
4158var typeGConstructed = typeG.Construct(typeObject, typeObject);
Semantics\NullableConversionTests.cs (1)
812var nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(compilation.GetSpecialType(SpecialType.System_Int32));
Semantics\NullableReferenceTypesTests.cs (1)
115895var i2a = i2.Construct(iDefinition.TypeParameters.Single());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (108)
Compilation\CompilationAPITests.cs (1)
1730var taskOfObject = taskOfT.Construct(compilation.ObjectType);
SymbolDisplay\SymbolDisplayTests.cs (3)
5439Assert.False(new FormattedSymbol(sC, f1).Equals(new FormattedSymbol(sC.Construct(sA), f1))); 5440Assert.True(new FormattedSymbol(sC.Construct(sA), f1).Equals(new FormattedSymbol(sC.Construct(sA), f1)));
Symbols\ConversionTests.cs (19)
47sys.ChildType("Nullable", 1).Construct(sys.ChildType("Int64")), 48sys.ChildType("Nullable", 1).Construct(sys.ChildType("UInt64")), 49sys.ChildType("Nullable", 1).Construct(sys.ChildType("Int32")), 50sys.ChildType("Nullable", 1).Construct(sys.ChildType("UInt32")), 51sys.ChildType("Nullable", 1).Construct(sys.ChildType("Int16")), 52sys.ChildType("Nullable", 1).Construct(sys.ChildType("UInt16")), 53sys.ChildType("Nullable", 1).Construct(sys.ChildType("SByte")), 54sys.ChildType("Nullable", 1).Construct(sys.ChildType("Byte")), 55sys.ChildType("Nullable", 1).Construct(sys.ChildType("Double")), 56sys.ChildType("Nullable", 1).Construct(sys.ChildType("Single")), 57sys.ChildType("Nullable", 1).Construct(sys.ChildType("Decimal")), 58sys.ChildType("Nullable", 1).Construct(sys.ChildType("Char")), 61sys.ChildNamespace("Collections").ChildNamespace("Generic").ChildType("IEnumerable", 1).Construct(sys.ChildType("Object")), 62sys.ChildNamespace("Collections").ChildNamespace("Generic").ChildType("IEnumerable", 1).Construct(sys.ChildType("String")), 63sys.ChildNamespace("Collections").ChildNamespace("Generic").ChildType("IEnumerable", 1).Construct(sys.ChildType("Char")), 66sys.ChildNamespace("Collections").ChildNamespace("Generic").ChildType("IList", 1).Construct(sys.ChildType("String")), 67sys.ChildNamespace("Collections").ChildNamespace("Generic").ChildType("IList", 1).Construct(sys.ChildType("Object")), 70sys.ChildType("Func", 2).Construct(sys.ChildType("Exception"), sys.ChildType("Exception")), 71sys.ChildType("Func", 2).Construct(sys.ChildType("ArgumentException"), sys.ChildType("Object")),
Symbols\DefaultInterfaceImplementationTests.cs (21)
34853var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 34854var test1i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1"); 34855var test1i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2"); 34857var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34858var test2i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M1"); 34859var test2i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("M2"); 34860var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 34861var test2i2m1 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M1"); 34862var test2i2m2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)).GetMember<MethodSymbol>("I1<T>.M2"); 39150var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 39151var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 39153var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39154var test2i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 39155var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 39156var test2i2m1 = GetSingleProperty(i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41826var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 41827var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 41829var test2i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41830var test2i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64))); 41831var test2i2 = i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)); 41832var test2i2m1 = GetSingleEvent(i2.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int64)));
Symbols\ExtensionMethodTests.cs (2)
2850var msi = myStruct.Construct(int32Type); 2873msi = myStruct.Construct(int32Type);
Symbols\IndexerTests.cs (1)
2870var substitutedType = unsubstitutedType.Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\Metadata\PE\DynamicTransformsTests.cs (51)
73var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); 77var innerClassOfTArrDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfT, s_dynamicType); 79var memberInnerInnerOfInt = innerClassOfTArrDynamic.GetTypeMember("InnerInner").Construct(_intType); 82var memberComplicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfInnerInnerOfInt, s_dynamicType); 84var memberInnerInnerOfDynamic = memberComplicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); 91var base1OfDynamic = _base1Class.Construct(s_dynamicType); 97var base2OfDynamicV = _base2Class.Construct(s_dynamicType, _innerClass.TypeParameters[1]); 162var outerOfT = _outerClass.Construct(derivedTypeParam); 163var innerOfIntOfTWithOuterT = outerOfT.GetTypeMember("Inner").Construct(_intType, derivedTypeParam); 165var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); 166var complicatedInnerInner = innerOfIntOfTWithOuterT.GetTypeMember("InnerInner").Construct(outerClassOfDynamic); 171var innerOfTTWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); 172complicatedInnerInner = innerOfTTWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(derivedTypeParam); 178var innerOfTDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(derivedTypeParam, s_dynamicType); 180var complicatedOuter = _outerClass.Construct(innerOfTDynamicWithOuterOfDynamic); 182var complicatedInner = complicatedOuter.GetTypeMember("Inner").Construct(s_dynamicType, derivedTypeParam); 183complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(derivedTypeParam); 189var innerOfDynamicDynamicWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); 190complicatedInnerInner = innerOfDynamicDynamicWithOuterOfT.GetTypeMember("InnerInner").Construct(derivedTypeParam); 196var innerOfTTWithOuterOfT = outerOfT.GetTypeMember("Inner").Construct(derivedTypeParam, derivedTypeParam); 198complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); 199complicatedInnerInner = innerOfTTWithOuterOfT.GetTypeMember("InnerInner").Construct(complicatedInnerInner); 205var innerOfOuterOfTTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerOfT, derivedTypeParam); 206complicatedInnerInner = innerOfOuterOfTTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); 212var innerOfDynamicDynamicWithOuterOfDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, s_dynamicType); 213complicatedInnerInner = innerOfDynamicDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); 219var innerOfOuterOfDynamicTWithOuterDynamic = outerClassOfDynamic.GetTypeMember("Inner").Construct(outerClassOfDynamic, derivedTypeParam); 221complicatedInnerInner = innerOfOuterOfDynamicTWithOuterDynamic.GetTypeMember("InnerInner").Construct(s_dynamicType); 228complicatedInnerInner = innerOfTDynamicWithOuterOfDynamic.GetTypeMember("InnerInner").Construct(_intType); 230complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInner, arrayOfDynamic); 232complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); 242complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); 244complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); 248complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); 250complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); 258var inner3OfDynamic = _inner3Class.Construct(s_dynamicType); 288var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); 290var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); 292var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(_intType); 296complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); 298complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); 336var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); 338var complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(arrayOfDerivedTypeParam, s_dynamicType); 345var complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(arrayOfArrayOfPointerToInt); 349complicatedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(complicatedInnerInnerArray, s_dynamicType); 351complicatedInnerInner = complicatedInner.GetTypeMember("InnerInner").Construct(s_dynamicType); 356var baseType = _base2Class.Construct(arrayOfPointerToInt, complicatedInnerInnerArrayOfArray); 373var nullableStruct = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Nullable_T).Construct(structType); 375var outerClassOfDynamic = _outerClass.Construct(s_dynamicType); 377var constructedInner = outerClassOfDynamic.GetTypeMember("Inner").Construct(s_dynamicType, nullableStruct); 410var constructedA = classA.Construct(s_dynamicType);
Symbols\Metadata\PE\MissingTypeReferences.cs (1)
89Assert.Same(constructedFrom, constructedFrom.Construct(constructedFrom.TypeParameters.ToArray()));
Symbols\OverriddenOrHiddenMembersTests.cs (2)
3690var validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType); 3946var validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType);
Symbols\Source\TypeMapTests.cs (5)
141var c1OfByteChar = C1.Construct(_byte, _char); 146var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_int, _int); 151var c1OfByteChar_c2OfIntInt_c3OfIntByte = c1OfByteChar_c2OfIntInt_c3.Construct(_int, _byte); 184var c1OfByteChar = C1.Construct(_byte, _char); 190var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_byte, _char, _int, _int);
Symbols\TypedConstantTests.cs (2)
37_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 38_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdEventTests.cs (1)
3593var expectedFieldType = compilation.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationTokenTable_T).Construct(eventType.Type);
Microsoft.CodeAnalysis.UnitTests (2)
CommonTypedConstantTests.cs (2)
32_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 33_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String));