358 instantiations of CodeTypeReference
Microsoft.Build.Tasks.Core (14)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
285ReturnType = new CodeTypeReference(typeof(Boolean)) 663CodeMemberField field = new CodeMemberField(new CodeTypeReference(type), "_" + name) 679Type = new CodeTypeReference(type),
system.design\stronglytypedresourcebuilder.cs (10)
249new CodeTypeReference(typeof(System.Diagnostics.DebuggerNonUserCodeAttribute)) 256new CodeTypeReference(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute)) 331var generatedCodeAttrib = new CodeAttributeDeclaration(new CodeTypeReference(typeof(GeneratedCodeAttribute))); 368var suppressMessageAttrib = new CodeAttributeDeclaration(new CodeTypeReference(typeof(SuppressMessageAttribute))); 388var ResMgrCodeTypeReference = new CodeTypeReference(typeof(ResourceManager), CodeTypeReferenceOptions.GlobalReference); 401var CultureTypeReference = new CodeTypeReference(typeof(CultureInfo), CodeTypeReferenceOptions.GlobalReference); 434new CodeTypeReference(typeof(System.ComponentModel.EditorBrowsableState)) 489var getAssembly = new CodePropertyReferenceExpression(new CodeTypeOfExpression(new CodeTypeReference(srClass.Name)), "Assembly"); 580valueType = new CodeTypeReference(type); 592valueType = new CodeTypeReference(data.TypeFullName);
WriteCodeFragment.cs (1)
277var attribute = new CodeAttributeDeclaration(new CodeTypeReference(attributeItem.ItemSpec));
PresentationBuildTasks (25)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (25)
874PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]) 1109PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]) 1238var iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 1470new CodeTypeReference(typeof(SuppressMessageAttribute)), 1480new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute))); 2031cmmEventHandler.ReturnType = new CodeTypeReference(typeof(void)); 2052cmmEventHandlerHelper.ReturnType = new CodeTypeReference(typeof(void)); 2208new CodeTypeReference("System.Diagnostics.CodeAnalysis.SuppressMessageAttribute"), 2278_ccRoot.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i])); 2318ctrConstructedType = new CodeTypeReference(genericName); 2322ctrConstructedType = new CodeTypeReference(t.FullName); 2347ctrConstructedType = new CodeTypeReference(genericName); 2386ctrTypeArg = new CodeTypeReference(currTypeArg); 2403ctrTypeArg = new CodeTypeReference(typeParam); 2412ctrConstructedType = new CodeTypeReference(t.FullName); 2428new CodeTypeReference(typeof(GeneratedCodeAttribute)), 2532ElementTypeReference = new CodeTypeReference(GetFullClassName(ns, className)) 2555ReturnType = new CodeTypeReference(typeof(Delegate)), 2592cmmLC.ImplementationTypes.Add(new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])); 2704Type = new CodeTypeReference(typeof(bool)) 2742ctdClass.BaseTypes.Add(new CodeTypeReference("System.Windows.Markup.InternalTypeHelper")); 2765ReturnType = new CodeTypeReference(typeof(Object)) 2804ReturnType = new CodeTypeReference(typeof(Object)) 2876ReturnType = new CodeTypeReference(typeof(Delegate)) 3206cmmMain.ReturnType = new CodeTypeReference(typeof(void));
System.CodeDom (47)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (6)
50ArrayElementType = new CodeTypeReference(type.GetElementType()!); 102TypeArguments.Add(new CodeTypeReference(genericArgs[i])); 219typeArgumentList.Add(new CodeTypeReference(name)); 234CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); 243type = new CodeTypeReference(type, q.Dequeue()); 293ArrayElementType = new CodeTypeReference(baseType);
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (2)
38public void Add(string value) => Add(new CodeTypeReference(value)); 40public void Add(Type value) => Add(new CodeTypeReference(value));
System\CodeDom\CodeArrayCreateExpression.cs (7)
23_createType = new CodeTypeReference(createType); 29_createType = new CodeTypeReference(createType); 41_createType = new CodeTypeReference(createType); 47_createType = new CodeTypeReference(createType); 59_createType = new CodeTypeReference(createType); 65_createType = new CodeTypeReference(createType); 71get => _createType ??= new CodeTypeReference("");
System\CodeDom\CodeAttributeDeclaration.cs (1)
47_attributeType = new CodeTypeReference(_name);
System\CodeDom\CodeCastExpression.cs (3)
18TargetType = new CodeTypeReference(targetType); 24TargetType = new CodeTypeReference(targetType); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeCatchClause.cs (1)
39get => _catchExceptionType ??= new CodeTypeReference(typeof(Exception));
System\CodeDom\CodeDefaultValueExpression.cs (1)
19get => _type ??= new CodeTypeReference("");
System\CodeDom\CodeDelegateCreateExpression.cs (1)
22get => _delegateType ??= new CodeTypeReference("");
System\CodeDom\CodeMemberEvent.cs (1)
12get => field ??= new CodeTypeReference("");
System\CodeDom\CodeMemberField.cs (3)
18Type = new CodeTypeReference(type); 24Type = new CodeTypeReference(type); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeMemberMethod.cs (1)
23get => field ??= new CodeTypeReference(typeof(void).FullName);
System\CodeDom\CodeMemberProperty.cs (1)
17get => field ??= new CodeTypeReference("");
System\CodeDom\CodeObjectCreateExpression.cs (3)
18CreateType = new CodeTypeReference(createType); 24CreateType = new CodeTypeReference(createType); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeParameterDeclarationExpression.cs (3)
18Type = new CodeTypeReference(type); 24Type = new CodeTypeReference(type); 38get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeDelegate.cs (2)
15BaseTypes.Add(new CodeTypeReference("System.Delegate")); 25get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeOfExpression.cs (3)
17Type = new CodeTypeReference(type); 22Type = new CodeTypeReference(type); 27get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeReferenceExpression.cs (3)
17Type = new CodeTypeReference(type); 22Type = new CodeTypeReference(type); 27get => field ??= new CodeTypeReference("");
System\CodeDom\CodeVariableDeclarationStatement.cs (5)
18Type = new CodeTypeReference(type); 24Type = new CodeTypeReference(type); 37Type = new CodeTypeReference(type); 44Type = new CodeTypeReference(type); 59get => field ??= new CodeTypeReference("");
System.Management (251)
System\Management\WMIGenerator.cs (251)
243cc.BaseTypes.Add(new CodeTypeReference(PrivateNamesUsed["ComponentClass"].ToString())); 934cmp.Type = new CodeTypeReference(propType); 971cmp.Type = new CodeTypeReference(propType); 1015cmp.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 1064coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 1095cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1158cf.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1205if ((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) || 1206cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 1217cmp2.Type = new CodeTypeReference("System.Boolean"); 1385cmm.ReturnType = new CodeTypeReference("System.Boolean"); 1502new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"), 1510new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"), 1820cmp.Type = new CodeTypeReference(strEnum, 1); 1824cmp.Type = new CodeTypeReference(strEnum); 1924cmp.Type = new CodeTypeReference(strEnum, 1); 1928cmp.Type = new CodeTypeReference(strEnum); 2039cmm.ReturnType = new CodeTypeReference("System.String"); 2077cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "), new CodeVariableReferenceExpression("key" + arrKeys[i])); 2117coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2152cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2159if (cctor.Parameters.Count == 1 && cctor.Parameters[0].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2162cpde.Type = new CodeTypeReference("System.Object"); 2180coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2200cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2211cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2218if (cctor.Parameters.Count == 2 && cctor.Parameters[1].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2221cpde.Type = new CodeTypeReference("System.Object"); 2228new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2241coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2266cpde.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2297cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2298cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2325cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2326cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2350cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2363coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2387cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2400coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2422cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2424cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2440coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2483cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2484cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2485cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2520cpde.Type = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2548coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2555coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2590cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 2615coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2625coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2670cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2671cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2672cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2699coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2707coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2715coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2852cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), 2860cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2862cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 2865coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2871coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2873cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), strClassObj, coce1)); 2975cis.TrueStatements.Add(new CodeAssignStatement(cie, new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "), 3013cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strOutParams, cmie)); 3113coce.CreateType = new CodeTypeReference("System.TimeSpan"); 3192if (retRefType.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 3220coce.CreateType = new CodeTypeReference("System.TimeSpan"); 3236if (retRefType.ArrayRank == 0 && retRefType.BaseType != new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 3282cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3312cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3343cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3374cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3421cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3422cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3423cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3446coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3463coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 3465cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), pathObj, coce)); 3477coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 3482cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), 3493coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3505coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3532cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3533cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3534cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), strCondition)); 3563cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3604cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3606cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3626coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3641coce1.CreateType = new CodeTypeReference(PublicNamesUsed["QueryClass"].ToString()); 3647coce.CreateType = new CodeTypeReference(PublicNamesUsed["ObjectSearcherClass"].ToString()); 3655coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3658new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3674coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3706cf.Type = new CodeTypeReference(MemberType); 3754cf.Type = new CodeTypeReference(PublicNamesUsed["TypeConverter"].ToString()); 3761cf.Type = new CodeTypeReference(PublicNamesUsed["Type"].ToString()); 3776cpde.Type = new CodeTypeReference("System.Type"); 3800cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3824cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3848cmm.ReturnType = new CodeTypeReference("System.Object"); 3852cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 3873cmm.ReturnType = new CodeTypeReference("System.Object"); 3897cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3918cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 3920CodeTypeReference crt = new CodeTypeReference(new CodeTypeReference("System.Attribute"), 1); 3922cmm.ReturnType = new CodeTypeReference(propColl); 3943cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3962cmm.ReturnType = new CodeTypeReference("System.ComponentModel.TypeConverter.StandardValuesCollection"); 3981cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4000cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4050cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 4052cmm.ReturnType = new CodeTypeReference("System.Object"); 4255cf.Type = new CodeTypeReference(strManagementObjectCollectionType); 4267cpde.Type = new CodeTypeReference(strManagementObjectCollectionType); 4298cmp.Type = new CodeTypeReference("System.Int32"); 4315cmp.Type = new CodeTypeReference("System.Boolean"); 4331cmp.Type = new CodeTypeReference("System.Object"); 4358cpde.Type = new CodeTypeReference("System.Array"); 4363cpde.Type = new CodeTypeReference("System.Int32"); 4400coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4401coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), cmie1)); 4419cmm.ReturnType = new CodeTypeReference("System.Collections.IEnumerator"); 4421coce.CreateType = new CodeTypeReference(PrivateNamesUsed["EnumeratorClass"].ToString()); 4452cf.Type = new CodeTypeReference(strManagementObjectCollectionType + "." + 4465cpde.Type = new CodeTypeReference(strManagementObjectCollectionType + "." + 4496cmp.Type = new CodeTypeReference("System.Object"); 4501coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4502coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), 4518cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4683return new CodeTypeReference(strType, 1); 4687return new CodeTypeReference(strType); 5004cpde.Type = new CodeTypeReference(PublicNamesUsed["PutOptions"].ToString()); 5354cmp.Type = new CodeTypeReference("System.String"); 5394new CodeCastExpression(new CodeTypeReference("System.String"), 5440cmm.ReturnType = new CodeTypeReference("System.Boolean"); 5442cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 5443cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathParam)); 5444cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 5483coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 5512cmm.ReturnType = new CodeTypeReference("System.Boolean"); 5514cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strTempObj)); 5518new CodeCastExpression(new CodeTypeReference("System.String"), 5552CodeExpression cs = new CodeCastExpression(new CodeTypeReference("System.Array"), 5588new CodeCastExpression(new CodeTypeReference("System.String"), cmie1), 5667ce = new CodeCastExpression(new CodeTypeReference("System.String"), new CodePropertyReferenceExpression(prop, "Value")); 5671ce = new CodeCastExpression(new CodeTypeReference("System.String"), prop); 5706new CodeTypeReference("System.Array"), 5716new CodeTypeReference("System.Array"), 5724new CodeTypeReference("System.Int32"), 5730CodeTypeReference arrPathType = new CodeTypeReference( 5731new CodeTypeReference(strType), 5739new CodeTypeReference(strType), 5748new CodeTypeReference("System.Int32"), 5773cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), new CodePropertyReferenceExpression(prop, "Value")); 5777cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), prop); 5835new CodeTypeReference("System.Array"), 5843new CodeTypeReference("System.Int32"), 5850new CodeTypeReference(new CodeTypeReference("System.String"), 1); 5857new CodeTypeReference("System.String"), 5866new CodeTypeReference("System.Int32"), 5890cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), varValue); 5929coce.CreateType = new CodeTypeReference("System.TimeSpan"); 5947coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 5967cmie1.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.DateTime"), beginningExpression)); 5974cmie2.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.TimeSpan"), beginningExpression)); 5980new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), 5994cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6055new CodeCastExpression(new CodeTypeReference("System.Array"), ciProp))); 6057cmProp.GetStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(strEnumName, 1), ArrToRet, 6058new CodeArrayCreateExpression(new CodeTypeReference(strEnumName), 6089new CodeCastExpression(new CodeTypeReference(strEnumName), cmie2))); 6152codeType = new CodeTypeReference("System.DateTime", 1); 6156codeType = new CodeTypeReference("System.DateTime"); 6166codeType = new CodeTypeReference("System.TimeSpan", 1); 6170codeType = new CodeTypeReference("System.TimeSpan"); 6219cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6232cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 6244coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6260cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 6262cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 6265coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 6278coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6361cmmdt.ReturnType = new CodeTypeReference("System.DateTime"); 6362cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), dmtfParam)); 6367cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), "initializer", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"), "MinValue"))); 6370cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), year, new CodePropertyReferenceExpression(cvreInitializer, "Year"))); 6373cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), month, new CodePropertyReferenceExpression(cvreInitializer, "Month"))); 6376cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), day, new CodePropertyReferenceExpression(cvreInitializer, "Day"))); 6379cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hour, new CodePropertyReferenceExpression(cvreInitializer, "Hour"))); 6382cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minute, new CodePropertyReferenceExpression(cvreInitializer, "Minute"))); 6385cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), second, new CodePropertyReferenceExpression(cvreInitializer, "Second"))); 6388cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0))); 6391cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtf, new CodeVariableReferenceExpression(dmtfParam))); 6395cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), datetimeVariable, cpreMinVal)); 6398cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), tempStr, new CodeFieldReferenceExpression( 6410codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6596codeThrowExceptionWithArgs.CreateType = new CodeTypeReference 6622coce.CreateType = new CodeTypeReference("System.DateTime"); 6653cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tickoffset, cmie1)); 6662cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), utcOffset, new CodePrimitiveExpression(0))); 6664cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), offsetAdjust, new CodePrimitiveExpression(0))); 6674new CodeTypeReference("System.Int64"), 6742cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust), new CodeCastExpression(new CodeTypeReference("System.Int32"), cboe))); 6805cmmts.ReturnType = new CodeTypeReference("System.String"); 6806cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.TimeSpan"), timespan)); 6821new CodeTypeReference("System.Int32 "), 6834new CodeTypeReference("System.String"), 6842new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6852cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "maxTimeSpan", cpreMaxVal)); 6882cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "minTimeSpan", cpreMinVal)); 6910cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6927cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6944cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6966coce.CreateType = new CodeTypeReference("System.TimeSpan"); 6972cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, coce)); 6997new CodeTypeReference("System.Int64"), 7007cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), new CodeVariableReferenceExpression(microsec)), "ToString"); 7008cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie)); 7067cmmdt.ReturnType = new CodeTypeReference("System.String"); 7068cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.DateTime"), dateParam)); 7074cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strUtc, 7096new CodeTypeReference("System.TimeSpan"), 7110new CodeTypeReference("System.Int64"), 7163cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), cboe2), "ToString"); 7181cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), new CodeVariableReferenceExpression(OffsetMins)), "ToString"); 7182cis2.FalseStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), "strTemp", cmie1)); 7208cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), 7218cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtfDateTime, cmie2)); 7260coce.CreateType = new CodeTypeReference("System.DateTime"); 7268cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), dtTemp, coce)); 7292new CodeTypeReference("System.Int64"), 7302cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), 7304cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie1)); 7362cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference(strType), 7389cmmts.ReturnType = new CodeTypeReference("System.TimeSpan"); 7390cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), tsParam)); 7395cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), days, new CodePrimitiveExpression(0))); 7397cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hours, new CodePrimitiveExpression(0))); 7399cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minutes, new CodePrimitiveExpression(0))); 7401cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), seconds, new CodePrimitiveExpression(0))); 7403cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0))); 7421codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 7493tryblock.TryStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strTemp, 7622codeThrowExceptionWithArgs.CreateType = new CodeTypeReference 7649coce.CreateType = new CodeTypeReference("System.TimeSpan"); 7656cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), timespan, coce)); 7667cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, cmie));
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
321return new CodeTypeReference(type); 458contractCodeDomInfo.TypeReference = new CodeTypeReference((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName); 514contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName); 631typeReference = new CodeTypeReference(elementTypeReference, 1);
System.Windows.Forms.Design (17)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1995CodeTypeReference typeRef = new(expressionType);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
398CodeTypeReference elementTypeRef = new(elementType); 626CodeTypeReference elementTypeRef = new(elementType);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
510CodeTypeReference type = new(typeof(IPersistComponentSettings)); 529CodeTypeReference type = new(typeof(ISupportInitialize));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
50CodeTypeReference delegateTypeRef = new(eventToSerialize.EventType);
System\ComponentModel\Design\Serialization\PrimitiveCodeDomSerializer.cs (1)
29_ => new CodeCastExpression(new CodeTypeReference(value.GetType()), new CodePrimitiveExpression(value)),
System\Resources\Tools\StronglyTypedResourceBuilder.cs (10)
380classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute)) 386classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(CompilerGeneratedAttribute)) 442CodeAttributeDeclaration generatedCodeAttrib = new(new CodeTypeReference(typeof(GeneratedCodeAttribute))); 490CodeAttributeDeclaration suppressAttribute = new(new CodeTypeReference(typeof(SuppressMessageAttribute))); 502CodeTypeReference resourceManagerType = new(typeof(ResourceManager), CodeTypeReferenceOptions.GlobalReference); 511CodeTypeReference cultureInfoType = new(typeof(CultureInfo), CodeTypeReferenceOptions.GlobalReference); 537CodeTypeReference editorBrowsableStateType = new(typeof(EditorBrowsableState)) 594new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)), 603new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)), 718CodeTypeReference valueType = new(type);
177 references to CodeTypeReference
Microsoft.Build.Tasks.Core (6)
system.design\stronglytypedresourcebuilder.cs (6)
248var debuggerAttrib = 255var compilerGenedAttrib = 388var ResMgrCodeTypeReference = new CodeTypeReference(typeof(ResourceManager), CodeTypeReferenceOptions.GlobalReference); 401var CultureTypeReference = new CodeTypeReference(typeof(CultureInfo), CodeTypeReferenceOptions.GlobalReference); 433var editorBrowsableStateTypeRef = 551CodeTypeReference valueType;
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1238var iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 2283private static CodeTypeReference GenerateConstructedTypeReference(Type t, string [] typeArgsList, string genericName) 2285CodeTypeReference ctrConstructedType = null; 2328private static CodeTypeReference GenerateConstructedTypeReference(Type t, string [] typeArgsList, Type refType, string refTypeFullName, string eventName) 2330CodeTypeReference ctrConstructedType = null; 2336CodeTypeReference ctrTypeArg = null; 2439CodeTypeReference ctrBaseClass = null; 3401internal CodeTypeReference ElementTypeReference 3420protected CodeTypeReference _ctrElemTypeRef = null;
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
105[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeTypeReference))]
System.CodeDom (88)
Microsoft\CSharp\CSharpCodeGenerator.cs (7)
206private void OutputType(CodeTypeReference typeRef) => Output.Write(GetTypeOutput(typeRef)); 1922foreach (CodeTypeReference typeRef in e.BaseTypes) 2218private void OutputTypeNamePair(CodeTypeReference typeRef, string name) 2272foreach (CodeTypeReference typeRef in typeParameters[i].Constraints) 2710private string GetBaseTypeOutput(CodeTypeReference typeRef, bool preferBuiltInTypes = true) 2846public string GetTypeOutput(CodeTypeReference typeRef) 2850CodeTypeReference baseTypeRef = typeRef;
Microsoft\VisualBasic\VBCodeGenerator.cs (13)
673protected override void OutputType(CodeTypeReference typeRef) 754protected override void OutputTypeNamePair(CodeTypeReference typeRef, string name) 765private static string GetArrayPostfix(CodeTypeReference typeRef) 789private void OutputArrayPostfix(CodeTypeReference typeRef) 1388CodeTypeReference typeRef = e.Type; 1472foreach (CodeTypeReference type in e.ImplementationTypes) 1645foreach (CodeTypeReference type in e.ImplementationTypes) 1792foreach (CodeTypeReference type in e.ImplementationTypes) 2012foreach (CodeTypeReference typeRef in e.BaseTypes) 2088foreach (CodeTypeReference typeRef in constraints) 2421private string GetBaseTypeOutput(CodeTypeReference typeRef, bool preferBuiltInTypes = true) 2525private string GetTypeOutputWithoutArrayPostFix(CodeTypeReference typeRef) 2566protected override string GetTypeOutput(CodeTypeReference typeRef)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (5)
167var typeArgumentList = new List<CodeTypeReference>(); 234CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); 273public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeName) 296public CodeTypeReference(CodeTypeReference arrayType, int rank) 303public CodeTypeReference? ArrayElementType { get; set; }
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (10)
25public CodeTypeReferenceCollection(CodeTypeReference[] value) 30public CodeTypeReference this[int index] 32get { return ((CodeTypeReference)(List[index]!)); } 36public int Add(CodeTypeReference value) => List.Add(value); 42public void AddRange(CodeTypeReference[] value) 63public bool Contains(CodeTypeReference value) => List.Contains(value); 65public void CopyTo(CodeTypeReference[] array, int index) => List.CopyTo(array, index); 67public int IndexOf(CodeTypeReference value) => List.IndexOf(value); 69public void Insert(int index, CodeTypeReference value) => List.Insert(index, value); 71public void Remove(CodeTypeReference value) => List.Remove(value);
System\CodeDom\CodeArrayCreateExpression.cs (5)
9private CodeTypeReference _createType; 15public CodeArrayCreateExpression(CodeTypeReference createType, params CodeExpression[] initializers) 33public CodeArrayCreateExpression(CodeTypeReference createType, int size) 51public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) 69public CodeTypeReference CreateType
System\CodeDom\CodeAttributeDeclaration.cs (4)
10private CodeTypeReference _attributeType; 25public CodeAttributeDeclaration(CodeTypeReference attributeType) : this(attributeType, null) { } 27public CodeAttributeDeclaration(CodeTypeReference attributeType, params CodeAttributeArgument[] arguments) 53public CodeTypeReference AttributeType => _attributeType;
System\CodeDom\CodeCastExpression.cs (2)
10public CodeCastExpression(CodeTypeReference targetType, CodeExpression expression) 28public CodeTypeReference TargetType
System\CodeDom\CodeCatchClause.cs (4)
8private CodeTypeReference _catchExceptionType; 18public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) 24public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) 37public CodeTypeReference CatchExceptionType
System\CodeDom\CodeDefaultValueExpression.cs (3)
8private CodeTypeReference _type; 12public CodeDefaultValueExpression(CodeTypeReference type) 17public CodeTypeReference Type
System\CodeDom\CodeDelegateCreateExpression.cs (3)
8private CodeTypeReference _delegateType; 13public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) 20public CodeTypeReference DelegateType
System\CodeDom\CodeMemberEvent.cs (2)
10public CodeTypeReference Type 16public CodeTypeReference PrivateImplementationType { get; set; }
System\CodeDom\CodeMemberField.cs (2)
10public CodeMemberField(CodeTypeReference type, string name) 28public CodeTypeReference Type
System\CodeDom\CodeMemberMethod.cs (2)
21public CodeTypeReference ReturnType 55public CodeTypeReference PrivateImplementationType { get; set; }
System\CodeDom\CodeMemberProperty.cs (2)
11public CodeTypeReference PrivateImplementationType { get; set; } 15public CodeTypeReference Type
System\CodeDom\codemethodreferenceexpression.cs (1)
16public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params CodeTypeReference[] typeParameters)
System\CodeDom\CodeObjectCreateExpression.cs (2)
10public CodeObjectCreateExpression(CodeTypeReference createType, params CodeExpression[] parameters) 28public CodeTypeReference CreateType
System\CodeDom\CodeParameterDeclarationExpression.cs (2)
10public CodeParameterDeclarationExpression(CodeTypeReference type, string name) 36public CodeTypeReference Type
System\CodeDom\CodeTypeDelegate.cs (1)
23public CodeTypeReference ReturnType
System\CodeDom\CodeTypeOfExpression.cs (2)
10public CodeTypeOfExpression(CodeTypeReference type) 25public CodeTypeReference Type
System\CodeDom\CodeTypeReferenceExpression.cs (2)
10public CodeTypeReferenceExpression(CodeTypeReference type) 25public CodeTypeReference Type
System\CodeDom\CodeVariableDeclarationStatement.cs (3)
10public CodeVariableDeclarationStatement(CodeTypeReference type, string name) 28public CodeVariableDeclarationStatement(CodeTypeReference type, string name, CodeExpression initExpression) 57public CodeTypeReference Type
System\CodeDom\Compiler\CodeDomProvider.cs (1)
148public virtual string GetTypeOutput(CodeTypeReference type) =>
System\CodeDom\Compiler\CodeGenerator.cs (4)
431string ICodeGenerator.GetTypeOutput(CodeTypeReference type) => GetTypeOutput(type); 1120protected abstract void OutputType(CodeTypeReference typeRef); 1165protected virtual void OutputTypeNamePair(CodeTypeReference typeRef, string name) 1555protected abstract string GetTypeOutput(CodeTypeReference value);
System\CodeDom\Compiler\CodeValidator.cs (5)
51else if (e is CodeTypeReference) 53ValidateTypeReference((CodeTypeReference)e); 386foreach (CodeTypeReference typeRef in e.BaseTypes) 605private static void ValidateTypeReference(CodeTypeReference e) 620private static void ValidateArity(CodeTypeReference e)
System\CodeDom\Compiler\ICodeGenerator.cs (1)
14string GetTypeOutput(CodeTypeReference type);
System.Management (16)
System\Management\WMIGenerator.cs (16)
1196CodeTypeReference dateType = cmp.Type; 2043strType = ((CodeTypeReference)arrKeyType[i]).BaseType; 2063if (((CodeTypeReference)arrKeyType[i]).BaseType == "System.String") 2077cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "), new CodeVariableReferenceExpression("key" + arrKeys[i])); 2152cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2211cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2784CodeTypeReference retRefType = null; 2924CodeTypeReference dateType = cpde.Type; 3037CodeTypeReference dateType = cmm.ReturnType; 3055CodeTypeReference dateType = cpde.Type; 3174new CodeCastExpression((CodeTypeReference)inoutParamsType[i], 3920CodeTypeReference crt = new CodeTypeReference(new CodeTypeReference("System.Attribute"), 1); 4574private CodeTypeReference ConvertCIMType(CimType cType, bool isArray) 5730CodeTypeReference arrPathType = new CodeTypeReference( 5849CodeTypeReference arrPathType = 6147private bool GetDateTimeType(PropertyData prop, ref CodeTypeReference codeType)
System.Runtime.Serialization.Schema (40)
System\Runtime\Serialization\Schema\CodeExporter.cs (30)
305internal CodeTypeReference GetCodeTypeReference(DataContract dataContract) 318private CodeTypeReference GetCodeTypeReference(Type type) 325private CodeTypeReference? GetCodeTypeReference(Type type, IList? parameters) 327CodeTypeReference codeTypeReference = GetCodeTypeReference(type); 333CodeTypeReference? paramTypeReference = null; 360internal CodeTypeReference GetElementTypeReference(DataContract dataContract, bool isElementTypeNullable) 362CodeTypeReference elementTypeReference = GetCodeTypeReference(dataContract); 419CodeTypeReference? referencedType = GetReferencedType(dataContract); 545private CodeTypeReference? GetReferencedType(DataContract dataContract) 547CodeTypeReference? typeReference = GetSurrogatedTypeReference(dataContract); 607private CodeTypeReference? GetReferencedCollectionType(DataContract? collectionContract) 616CodeTypeReference? typeReference; 629CodeTypeReference? elementTypeReference = GetElementTypeReference(itemContract, isItemTypeNullable); 659private bool TryGetReferencedDictionaryType(DataContract collectionContract, [NotNullWhen(true)] out CodeTypeReference? typeReference) 679CodeTypeReference? keyTypeReference = GetElementTypeReference(keyMember.MemberTypeContract, keyMember.IsNullable); 680CodeTypeReference? valueTypeReference = GetElementTypeReference(valueMember.MemberTypeContract, valueMember.IsNullable); 694private bool TryGetReferencedListType(DataContract itemContract, bool isItemTypeNullable, out CodeTypeReference? typeReference) 711private CodeTypeReference? GetSurrogatedTypeReference(DataContract dataContract) 716CodeTypeReference typeReference = GetCodeTypeReference(type); 860CodeTypeReference memberType = GetElementTypeReference(dataMember.MemberTypeContract, 910internal ICollection<CodeTypeReference>? GetKnownTypeReferences(DataContract dataContract) 920List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>(); 1018private CodeTypeReference WrapNullable(CodeTypeReference memberType) 1023CodeTypeReference nullableOfMemberType = GetCodeTypeReference(typeof(Nullable<>)); 1228CodeTypeReference? baseTypeReference; 1685private CodeTypeReference CodeTypeIPropertyChange 2006private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType) 2011private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType, bool raisePropertyChanged)
System\Runtime\Serialization\Schema\ContractCodeDomInfo.cs (1)
43internal CodeTypeReference? TypeReference { get; set; }
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (9)
214/// Returns a <see cref="CodeTypeReference"/> to the CLR type generated for the schema type with the specified <see cref="XmlQualifiedName"/>. 217/// <returns>A <see cref="CodeTypeReference"/> reference to the CLR type generated for the schema type with the typeName specified.</returns> 219public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName) 227/// Returns a <see cref="CodeTypeReference"/> for the specified XML qualified element and schema element. 231/// <returns>A <see cref="CodeTypeReference"/> that represents the type that was generated for the specified schema type.</returns> 233public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName, XmlSchemaElement element) 261/// Returns a list of <see cref="CodeTypeReference"/> objects that represents the known types generated when generating code for the specified schema type. 264/// <returns>A collection of type <see cref="CodeTypeReference"/>.</returns> 266public ICollection<CodeTypeReference>? GetKnownTypeReferences(XmlQualifiedName typeName)
System.Windows.Forms.Design (17)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
234foreach (CodeTypeReference typeReference in typeDeclaration.BaseTypes) 898private static bool TypesEqual(CodeTypeReference typeLeft, CodeTypeReference typeRight)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
45internal static string GetTypeNameFromCodeTypeReference(IDesignerSerializationManager manager, CodeTypeReference typeref) 58private static void GetTypeNameFromCodeTypeReferenceHelper(IDesignerSerializationManager manager, CodeTypeReference typeref, StringBuilder typeName) 85foreach (CodeTypeReference childref in typeref.TypeArguments) 1995CodeTypeReference typeRef = new(expressionType);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
398CodeTypeReference elementTypeRef = new(elementType); 626CodeTypeReference elementTypeRef = new(elementType);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
510CodeTypeReference type = new(typeof(IPersistComponentSettings)); 529CodeTypeReference type = new(typeof(ISupportInitialize));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
50CodeTypeReference delegateTypeRef = new(eventToSerialize.EventType);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
58foreach (CodeTypeReference typeRef in declaration.BaseTypes)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
502CodeTypeReference resourceManagerType = new(typeof(ResourceManager), CodeTypeReferenceOptions.GlobalReference); 511CodeTypeReference cultureInfoType = new(typeof(CultureInfo), CodeTypeReferenceOptions.GlobalReference); 537CodeTypeReference editorBrowsableStateType = new(typeof(EditorBrowsableState)) 718CodeTypeReference valueType = new(type);