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