597 instantiations of CodeTypeReference
PresentationBuildTasks (25)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (25)
897
_ccRoot.StyleConnectorFn.PrivateImplementationType = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IStyleConnector]);
1129
_ccRoot.HookupFn.PrivateImplementationType = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1255
var iComponentConnector = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1475
new
CodeTypeReference
(typeof(SuppressMessageAttribute)),
1485
new
CodeTypeReference
(typeof(DebuggerNonUserCodeAttribute)));
1995
cmmEventHandler.ReturnType = new
CodeTypeReference
(typeof(void));
2016
cmmEventHandlerHelper.ReturnType = new
CodeTypeReference
(typeof(void));
2171
new
CodeTypeReference
("System.Diagnostics.CodeAnalysis.SuppressMessageAttribute"),
2241
_ccRoot.CodeClass.BaseTypes[0].TypeArguments.Add(new
CodeTypeReference
(_typeArgsList[i]));
2281
ctrConstructedType = new
CodeTypeReference
(genericName);
2285
ctrConstructedType = new
CodeTypeReference
(t.FullName);
2310
ctrConstructedType = new
CodeTypeReference
(genericName);
2349
ctrTypeArg = new
CodeTypeReference
(currTypeArg);
2366
ctrTypeArg = new
CodeTypeReference
(typeParam);
2375
ctrConstructedType = new
CodeTypeReference
(t.FullName);
2391
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)),
2490
cc.ElementTypeReference = new
CodeTypeReference
(GetFullClassName(ns, className));
2511
cmmCD.ReturnType = new
CodeTypeReference
(typeof(Delegate));
2545
cmmLC.ImplementationTypes.Add(new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]));
2630
cmfCL.Type = new
CodeTypeReference
(typeof(bool));
2663
ctdClass.BaseTypes.Add(new
CodeTypeReference
("System.Windows.Markup.InternalTypeHelper"));
2685
cmmCI.ReturnType = new
CodeTypeReference
(typeof(Object));
2720
cmmGPV.ReturnType = new
CodeTypeReference
(typeof(Object));
2784
cmmCD.ReturnType = new
CodeTypeReference
(typeof(Delegate));
3104
cmmMain.ReturnType = new
CodeTypeReference
(typeof(void));
System (47)
compmod\system\codedom\CodeArrayCreateExpression.cs (7)
55
this.createType = new
CodeTypeReference
(createType);
63
this.createType = new
CodeTypeReference
(createType);
82
this.createType = new
CodeTypeReference
(createType);
90
this.createType = new
CodeTypeReference
(createType);
109
this.createType = new
CodeTypeReference
(createType);
117
this.createType = new
CodeTypeReference
(createType);
130
createType = new
CodeTypeReference
("");
compmod\system\codedom\CodeAttributeDeclaration.cs (1)
87
attributeType = new
CodeTypeReference
(name);
compmod\system\codedom\CodeCastExpression.cs (3)
55
TargetType = new
CodeTypeReference
(targetType);
63
TargetType = new
CodeTypeReference
(targetType);
75
targetType = new
CodeTypeReference
("");
compmod\system\codedom\CodeCatchClause.cs (1)
80
catchExceptionType = new
CodeTypeReference
(typeof(System.Exception));
compmod\system\codedom\CodeDefaultValueExpression.cs (1)
28
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeDelegateCreateExpression.cs (1)
59
delegateType = new
CodeTypeReference
("");
compmod\system\codedom\CodeMemberEvent.cs (1)
46
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeMemberField.cs (3)
54
Type = new
CodeTypeReference
(type);
62
Type = new
CodeTypeReference
(type);
74
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeMemberMethod.cs (1)
73
returnType = new
CodeTypeReference
(typeof(void).FullName);
compmod\system\codedom\CodeMemberProperty.cs (1)
67
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeObjectCreateExpression.cs (3)
54
CreateType = new
CodeTypeReference
(createType);
62
CreateType = new
CodeTypeReference
(createType);
74
createType = new
CodeTypeReference
("");
compmod\system\codedom\CodeParameterDeclarationExpression.cs (3)
56
Type = new
CodeTypeReference
(type);
64
Type = new
CodeTypeReference
(type);
109
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeTypeDelegate.cs (2)
42
BaseTypes.Add(new
CodeTypeReference
("System.Delegate"));
62
returnType = new
CodeTypeReference
("");
compmod\system\codedom\CodeTypeOfExpression.cs (3)
51
Type = new
CodeTypeReference
(type);
58
Type = new
CodeTypeReference
(type);
69
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeTypeReference.cs (6)
64
this.arrayElementType = new
CodeTypeReference
(type.GetElementType());
110
TypeArguments.Add(new
CodeTypeReference
(genericArgs[i]));
212
typeArgumentList.Add(new
CodeTypeReference
(name));
225
CodeTypeReference type = new
CodeTypeReference
(typeName.Substring(0, end + 1), Options);
232
type = new
CodeTypeReference
( type, (int)q.Dequeue());
275
this.arrayElementType = new
CodeTypeReference
(baseType);
compmod\system\codedom\CodeTypeReferenceCollection.cs (2)
77
Add(new
CodeTypeReference
(value));
84
Add(new
CodeTypeReference
(value));
compmod\system\codedom\CodeTypeReferenceExpression.cs (3)
51
Type = new
CodeTypeReference
(type);
58
Type = new
CodeTypeReference
(type);
69
type = new
CodeTypeReference
("");
compmod\system\codedom\CodeVariableDeclarationStatement.cs (5)
54
Type = new
CodeTypeReference
(type);
62
Type = new
CodeTypeReference
(type);
82
Type = new
CodeTypeReference
(type);
91
Type = new
CodeTypeReference
(type);
132
type = new
CodeTypeReference
("");
System.Activities (63)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (63)
154
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)),
170
new
CodeTypeReference
(typeof(BrowsableAttribute)),
184
new
CodeTypeReference
(typeof(EditorBrowsableAttribute)),
187
new
CodeTypeReference
(typeof(EditorBrowsableState))), "Never")));
472
accessorField.Type = new
CodeTypeReference
(memberData.Type);
540
accessorProperty.Type = new
CodeTypeReference
(memberData.Type);
555
accessorProperty.Type = new
CodeTypeReference
(typeof(object));
571
accessorPropertyForReadOnly.Type = new
CodeTypeReference
(typeof(object));
712
classDeclaration.BaseTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
715
CodeMemberField compiledRootField = new CodeMemberField(new
CodeTypeReference
(typeof(Activity)), rootActivityFieldName);
721
languageProperty.ReturnType = new
CodeTypeReference
(typeof(string));
723
languageProperty.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
733
dataContextActivitiesField.Type = new
CodeTypeReference
(typeof(object));
740
forImplementationField.Type = new
CodeTypeReference
(typeof(bool));
760
new
CodeTypeReference
(typeof(Activity)),
772
new
CodeTypeReference
(typeof(ArgumentNullException)),
812
getLocationsMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
814
getLocationsMethod.ReturnType = new
CodeTypeReference
(typeof(IList<string>));
816
getLocationsMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
837
CodeVariableDeclarationStatement returnLocationsVar = new CodeVariableDeclarationStatement(new
CodeTypeReference
(typeof(List<string>)),
839
new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(List<string>))));
884
getExpressionTreeForExpressionMethod.ReturnType = new
CodeTypeReference
(typeof(Expression));
885
getExpressionTreeForExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
886
getExpressionTreeForExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locationReferences"));
887
getExpressionTreeForExpressionMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
905
new CodeObjectCreateExpression(new
CodeTypeReference
(descriptor.TypeName), new CodeExpression[] { new CodeVariableReferenceExpression("locationReferences") }),
928
invokeExpressionMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
930
invokeExpressionMethod.ReturnType = new
CodeTypeReference
(typeof(object));
932
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
936
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locations"));
937
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(ActivityContext)), "activityContext"));
941
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<Location>)), "locations"));
1020
new CodeTypeReferenceExpression(new
CodeTypeReference
(descriptor.TypeName)),
1144
new
CodeTypeReference
(descriptor.TypeName), dataContextVariableName);
1157
new
CodeTypeReference
(descriptor.TypeName),
1161
new
CodeTypeReference
(descriptor.TypeName),
1174
new CodeTypeReference[] { new
CodeTypeReference
(descriptor.ResultType) });
1218
new
CodeTypeReference
(descriptor.TypeName), dataContextVariableName);
1243
new
CodeTypeReference
(descriptor.TypeName), dataContextVariableName);
1269
isValidMethod.ReturnType = new
CodeTypeReference
(typeof(bool));
1274
isValidMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
1276
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(string)), "expressionText"));
1277
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(bool)), "isReference"));
1278
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locations"));
1280
CodeParameterDeclarationExpression expressionIdParam = new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId");
1358
new
CodeTypeReference
(typeName),
1366
new
CodeTypeReference
(typeName),
1478
expressionMethod.ReturnType = new
CodeTypeReference
(typeof(Expression));
1537
expressionMethod.ReturnType = new
CodeTypeReference
(resultType);
1538
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1582
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1632
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1779
offsetField.Type = new
CodeTypeReference
(typeof(int));
1786
expectedLocationsCountField.Type = new
CodeTypeReference
(typeof(int));
1824
dataContextActivitiesHelper.ReturnType = new
CodeTypeReference
(typeof(object));
1828
new
CodeTypeReference
(typeof(Activity)),
1833
new
CodeTypeReference
(typeof(bool)),
1852
setLocationsOffsetMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)),
1892
cacheHelper.ReturnType = new
CodeTypeReference
(typeof(CompiledDataContext[]));
2196
validateMethod.ReturnType = new
CodeTypeReference
(typeof(bool));
2200
new
CodeTypeReference
(typeof(IList<LocationReference>)),
2205
new
CodeTypeReference
(typeof(bool)),
2210
new
CodeTypeReference
(typeof(int)),
System.Data (3)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1421
private static CodeTypeReference Type(string type) { return new
CodeTypeReference
(type); }
1422
private static CodeTypeReference Type(Type type) { return new
CodeTypeReference
(type); }
1424
private static CodeTypeReference Type(string type, Int32 rank) { return new
CodeTypeReference
(type, rank); }
System.Data.Entity.Design (14)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (4)
489
getViewAtMethod.ReturnType = new
CodeTypeReference
(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
490
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "index");
533
new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(IndexOutOfRangeException)))));
543
viewMethod.ReturnType = new
CodeTypeReference
(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
273
onContextCreatedPartialMethod.ReturnType = new
CodeTypeReference
(typeof(void));
444
codeMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
97
onChangingDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
105
onChangedDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
106
typeDecl.BaseTypes.Add(new
CodeTypeReference
(interfaceType));
System\Data\EntityModel\Emitters\TypeReference.cs (5)
73
CodeTypeReference value = new
CodeTypeReference
(type, CodeTypeReferenceOptions.GlobalReference);
89
CodeTypeReference typeRef = new
CodeTypeReference
(generic, CodeTypeReferenceOptions.GlobalReference);
124
value = new
CodeTypeReference
(type, CodeTypeReferenceOptions.GlobalReference);
128
value = new
CodeTypeReference
(type);
229
CodeTypeReference typeRef = new
CodeTypeReference
(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
System.Data.Services.Design (16)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
30
new
CodeTypeReference
(typeof(System.CodeDom.Compiler.GeneratedCodeAttribute)),
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (5)
727
new
CodeTypeReference
(typeof(System.Data.Services.Common.EntitySetAttribute),
774
propertyChangedEvent.Type = new
CodeTypeReference
(typeof(System.ComponentModel.PropertyChangedEventHandler), CodeTypeReferenceOptions.GlobalReference);
785
propertyChangedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(System.String), CodeTypeReferenceOptions.GlobalReference), "property"));
786
propertyChangedMethod.ReturnType = new
CodeTypeReference
(typeof(void));
801
new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(System.ComponentModel.PropertyChangedEventArgs), CodeTypeReferenceOptions.GlobalReference), new CodeArgumentReferenceExpression("property"))
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
235
onContextCreatedPartialMethod.ReturnType = new
CodeTypeReference
(typeof(void));
606
codeMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
103
onChangingDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
110
onChangedDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
99
typeDecl.BaseTypes.Add(new
CodeTypeReference
(interfaceType, CodeTypeReferenceOptions.GlobalReference));
System\Data\EntityModel\Emitters\TypeReference.cs (5)
62
CodeTypeReference value = new
CodeTypeReference
(type, CodeTypeReferenceOptions.GlobalReference);
78
CodeTypeReference typeRef = new
CodeTypeReference
(generic, CodeTypeReferenceOptions.GlobalReference);
116
value = new
CodeTypeReference
(type, CodeTypeReferenceOptions.GlobalReference);
120
value = new
CodeTypeReference
(type);
192
CodeTypeReference typeRef = new
CodeTypeReference
(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\Scripts.cs (1)
263
new
CodeTypeReference
(typeof(System.Security.SecurityRulesAttribute)),
System\Xml\Xsl\XsltOld\Compiler.cs (1)
783
new
CodeTypeReference
(typeof(System.Security.SecurityRulesAttribute)),
System.Management (251)
WmiGenerator.cs (251)
273
cc.BaseTypes.Add(new
CodeTypeReference
(PrivateNamesUsed["ComponentClass"].ToString()));
975
cmp.Type = new
CodeTypeReference
(propType);
1012
cmp.Type = new
CodeTypeReference
(propType);
1056
cmp.Type = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
1105
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentExceptionClass"].ToString());
1136
cpde.Type = new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString());
1199
cf.Type = new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString());
1246
if((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) ||
1247
cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType .BaseType == new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()).BaseType)
1258
cmp2.Type = new
CodeTypeReference
("System.Boolean");
1426
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
1543
new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new
CodeTypeReference
(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"),
1551
new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new
CodeTypeReference
(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"),
1870
cmp.Type = new
CodeTypeReference
(strEnum, 1);
1874
cmp.Type = new
CodeTypeReference
(strEnum);
1974
cmp.Type = new
CodeTypeReference
(strEnum, 1);
1978
cmp.Type = new
CodeTypeReference
(strEnum);
2089
cmm.ReturnType = new
CodeTypeReference
("System.String");
2129
cmie.Method.TargetObject = new CodeCastExpression(new
CodeTypeReference
(((CodeTypeReference)arrKeyType[i]).BaseType + " "),new CodeVariableReferenceExpression("key"+arrKeys[i]));
2169
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2204
cpde.Type = new
CodeTypeReference
(((CodeTypeReference)arrKeyType[i]).BaseType);
2211
if(cctor.Parameters.Count == 1 && cctor.Parameters[0].Type.BaseType == new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()).BaseType)
2214
cpde.Type = new
CodeTypeReference
("System.Object");
2232
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2252
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
2263
cpde.Type = new
CodeTypeReference
(((CodeTypeReference)arrKeyType[i]).BaseType);
2270
if(cctor.Parameters.Count == 2 && cctor.Parameters[1].Type.BaseType == new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()).BaseType)
2273
cpde.Type = new
CodeTypeReference
("System.Object");
2280
new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),
2293
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2318
cpde.Type = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2349
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPathObject));
2350
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),strGetOptions));
2377
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
2378
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPathObject));
2402
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),
2415
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2439
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),
2452
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2474
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),
2476
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),
2492
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2535
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
2536
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPathObject));
2537
cctor.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),strGetOptions));
2572
cpde.Type = new
CodeTypeReference
(PublicNamesUsed["LateBoundClass"].ToString());
2600
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["SystemPropertiesClass"].ToString());
2607
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2643
cpde.Type = new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString());
2668
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["SystemPropertiesClass"].ToString());
2678
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2723
cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
2724
cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPathObject));
2725
cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),strGetOptions));
2752
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2760
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["LateBoundClass"].ToString());
2768
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["SystemPropertiesClass"].ToString());
2905
cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()),
2913
cocePath.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
2915
cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
2918
coce1.CreateType = new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString());
2924
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString());
2926
cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1));
3029
cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(new
CodeTypeReference
(cpde.Type.BaseType + " "),
3067
cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3167
coce.CreateType = new
CodeTypeReference
("System.TimeSpan");
3246
if (retRefType.BaseType == new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()).BaseType)
3274
coce.CreateType = new
CodeTypeReference
("System.TimeSpan");
3290
if(retRefType.ArrayRank == 0 && retRefType.BaseType != new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()).BaseType)
3336
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3366
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3397
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3429
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3476
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3477
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3478
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["QueryOptionsClass"].ToString()),
3501
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString());
3518
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
3520
cmm.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3532
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString());
3537
cmm.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString()),
3548
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["QueryOptionsClass"].ToString());
3560
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3587
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3588
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3589
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.String"),strCondition));
3619
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3660
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3662
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3682
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString());
3697
coce1.CreateType = new
CodeTypeReference
(PublicNamesUsed["QueryClass"].ToString());
3703
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ObjectSearcherClass"].ToString());
3711
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["QueryOptionsClass"].ToString());
3714
new
CodeTypeReference
(PublicNamesUsed["QueryOptionsClass"].ToString()),
3730
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["CollectionClass"].ToString());
3762
cf.Type = new
CodeTypeReference
(MemberType);
3810
cf.Type = new
CodeTypeReference
(PublicNamesUsed["TypeConverter"].ToString());
3817
cf.Type = new
CodeTypeReference
(PublicNamesUsed["Type"].ToString());
3833
cpde.Type = new
CodeTypeReference
("System.Type");
3857
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
3881
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
3905
cmm.ReturnType = new
CodeTypeReference
("System.Object");
3909
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.Object"),ValueVar));
3930
cmm.ReturnType = new
CodeTypeReference
("System.Object");
3954
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
3975
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.Object"),ValueVar));
3977
CodeTypeReference crt = new
CodeTypeReference
(new
CodeTypeReference
("System.Attribute"),1);
3979
cmm.ReturnType = new
CodeTypeReference
(propColl);
4000
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
4019
cmm.ReturnType = new
CodeTypeReference
("System.ComponentModel.TypeConverter.StandardValuesCollection");
4038
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
4057
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
4107
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.Object"),ValueVar));
4109
cmm.ReturnType = new
CodeTypeReference
("System.Object");
4312
cf.Type = new
CodeTypeReference
(strManagementObjectCollectionType);
4325
cpde.Type = new
CodeTypeReference
(strManagementObjectCollectionType);
4340
cmp.Type = new
CodeTypeReference
("System.Int32");
4358
cmp.Type = new
CodeTypeReference
("System.Boolean");
4375
cmp.Type = new
CodeTypeReference
("System.Object");
4403
cpde.Type = new
CodeTypeReference
("System.Array");
4408
cpde.Type = new
CodeTypeReference
("System.Int32");
4449
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["GeneratedClassName"].ToString());
4450
coce.Parameters.Add(new CodeCastExpression(new
CodeTypeReference
(PublicNamesUsed["LateBoundClass"].ToString()),cmie1));
4469
cmm.ReturnType = new
CodeTypeReference
("System.Collections.IEnumerator");
4471
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["EnumeratorClass"].ToString());
4527
cf.Type = new
CodeTypeReference
(strManagementObjectCollectionType+"."+
4541
cpde.Type = new
CodeTypeReference
(strManagementObjectCollectionType + "." +
4557
cmp.Type = new
CodeTypeReference
("System.Object");
4563
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["GeneratedClassName"].ToString());
4564
coce.Parameters.Add(new CodeCastExpression(new
CodeTypeReference
(PublicNamesUsed["LateBoundClass"].ToString()),
4594
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
4760
return new
CodeTypeReference
(strType,1);
4764
return new
CodeTypeReference
(strType);
5083
cpde.Type = new
CodeTypeReference
(PublicNamesUsed["PutOptions"].ToString());
5422
cmp.Type = new
CodeTypeReference
("System.String");
5462
new CodeCastExpression(new
CodeTypeReference
("System.String"),
5508
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
5510
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
5511
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPathParam));
5512
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["GetOptionsClass"].ToString()),strGetOptions));
5551
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["LateBoundClass"].ToString());
5582
cmm.ReturnType = new
CodeTypeReference
("System.Boolean");
5584
cmm.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(PublicNamesUsed["BaseObjClass"].ToString()),strTempObj));
5589
new CodeCastExpression(new
CodeTypeReference
("System.String"),
5623
CodeExpression cs = new CodeCastExpression(new
CodeTypeReference
("System.Array"),
5659
new CodeCastExpression(new
CodeTypeReference
("System.String"),cmie1),
5738
ce = new CodeCastExpression(new
CodeTypeReference
("System.String"),new CodePropertyReferenceExpression(prop,"Value"));
5742
ce = new CodeCastExpression(new
CodeTypeReference
("System.String"),prop);
5777
new
CodeTypeReference
("System.Array"),
5787
new
CodeTypeReference
("System.Array"),
5795
new
CodeTypeReference
("System.Int32"),
5801
CodeTypeReference arrPathType = new
CodeTypeReference
(
5802
new
CodeTypeReference
(strType),
5810
new
CodeTypeReference
(strType),
5819
new
CodeTypeReference
("System.Int32"),
5844
cmie1.Method.TargetObject = new CodeCastExpression(new
CodeTypeReference
("System.Array"),new CodePropertyReferenceExpression(prop,"Value"));
5848
cmie1.Method.TargetObject = new CodeCastExpression(new
CodeTypeReference
("System.Array"), prop);
5909
new
CodeTypeReference
("System.Array"),
5917
new
CodeTypeReference
("System.Int32"),
5924
new
CodeTypeReference
(new
CodeTypeReference
("System.String"), 1);
5931
new
CodeTypeReference
("System.String"),
5940
new
CodeTypeReference
("System.Int32"),
5964
cmie1.Method.TargetObject = new CodeCastExpression(new
CodeTypeReference
("System.Array"),varValue);
6004
coce.CreateType = new
CodeTypeReference
("System.TimeSpan");
6024
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
6044
cmie1.Parameters.Add(new CodeCastExpression(new
CodeTypeReference
("System.DateTime"),beginingExpression));
6052
cmie2.Parameters.Add(new CodeCastExpression(new
CodeTypeReference
("System.TimeSpan"),beginingExpression));
6059
new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),
6073
cmp.Type = new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString());
6134
new CodeCastExpression(new
CodeTypeReference
("System.Array"),ciProp)));
6136
cmProp.GetStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(strEnumName,1),ArrToRet,
6137
new CodeArrayCreateExpression(new
CodeTypeReference
(strEnumName),
6168
new CodeCastExpression(new
CodeTypeReference
(strEnumName),cmie2 )));
6232
codeType = new
CodeTypeReference
("System.DateTime",1);
6236
codeType = new
CodeTypeReference
("System.DateTime");
6246
codeType = new
CodeTypeReference
("System.TimeSpan",1);
6250
codeType = new
CodeTypeReference
("System.TimeSpan");
6299
cmm.ReturnType = new
CodeTypeReference
(PrivateNamesUsed["GeneratedClassName"].ToString());
6312
cmm.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString()),
6324
coce.CreateType = new
CodeTypeReference
(PublicNamesUsed["ScopeClass"].ToString());
6340
cocePath.CreateType = new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString());
6342
cmm.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
6345
coce1.CreateType = new
CodeTypeReference
(PublicNamesUsed["ManagementClass"].ToString());
6358
coce.CreateType = new
CodeTypeReference
(PrivateNamesUsed["GeneratedClassName"].ToString());
6441
cmmdt.ReturnType = new
CodeTypeReference
("System.DateTime");
6442
cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.String"),dmtfParam));
6447
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.DateTime"),"initializer",new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
6450
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),year,new CodePropertyReferenceExpression(cvreInitializer,"Year")));
6453
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),month, new CodePropertyReferenceExpression(cvreInitializer,"Month")));
6456
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),day,new CodePropertyReferenceExpression(cvreInitializer,"Day")));
6459
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),hour,new CodePropertyReferenceExpression(cvreInitializer,"Hour")));
6462
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),minute,new CodePropertyReferenceExpression(cvreInitializer,"Minute")));
6465
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),second,new CodePropertyReferenceExpression(cvreInitializer,"Second")));
6468
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int64"),ticks,new CodePrimitiveExpression(0)));
6471
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),dmtf,new CodeVariableReferenceExpression(dmtfParam)));
6475
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.DateTime"),datetimeVariable,cpreMinVal));
6478
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),tempStr,new CodeFieldReferenceExpression(
6497
codeThrowException.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentOutOfRangeException"].ToString());
6683
codeThrowExceptionWithArgs.CreateType = new
CodeTypeReference
6709
coce.CreateType = new
CodeTypeReference
("System.DateTime");
6740
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),tickoffset,cmie1));
6749
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),utcOffset,new CodePrimitiveExpression(0)));
6751
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),offsetAdjust,new CodePrimitiveExpression(0)));
6761
new
CodeTypeReference
("System.Int64"),
6829
cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new
CodeTypeReference
("System.Int32"),cboe)));
6892
cmmts.ReturnType = new
CodeTypeReference
("System.String");
6893
cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.TimeSpan"),timespan));
6908
new
CodeTypeReference
("System.Int32 "),
6921
new
CodeTypeReference
("System.String"),
6929
new
CodeTypeReference
(PublicNamesUsed["ArgumentOutOfRangeException"].ToString());
6939
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),"maxTimeSpan",cpreMaxVal));
6969
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),"minTimeSpan",cpreMinVal));
6997
cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int32 "),cpre1),"ToString");
7014
cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int32 "),cpre1),"ToString");
7031
cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int32 "),cpre1),"ToString");
7053
coce.CreateType = new
CodeTypeReference
("System.TimeSpan");
7059
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),tsTemp,coce));
7084
new
CodeTypeReference
("System.Int64"),
7094
cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int64 "),new CodeVariableReferenceExpression(microsec)),"ToString");
7095
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),strmicrosec,cmie));
7154
cmmdt.ReturnType = new
CodeTypeReference
("System.String");
7155
cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.DateTime"),dateParam));
7161
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),strUtc,
7183
new
CodeTypeReference
("System.TimeSpan"),
7197
new
CodeTypeReference
("System.Int64"),
7250
cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int64 "),cboe2),"ToString");
7268
cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int64 "),new CodeVariableReferenceExpression(OffsetMins)),"ToString");
7269
cis2.FalseStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),"strTemp",cmie1));
7295
cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int32 "),
7305
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),dmtfDateTime,cmie2));
7347
coce.CreateType = new
CodeTypeReference
("System.DateTime");
7355
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.DateTime"),dtTemp,coce));
7379
new
CodeTypeReference
("System.Int64"),
7389
cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
("System.Int64 "),
7391
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),strmicrosec,cmie1));
7449
cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new
CodeTypeReference
(strType),
7481
cmmts.ReturnType = new
CodeTypeReference
("System.TimeSpan");
7482
cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
("System.String"),tsParam));
7487
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),days,new CodePrimitiveExpression(0)));
7489
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),hours,new CodePrimitiveExpression(0)));
7491
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),minutes,new CodePrimitiveExpression(0)));
7493
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int32"),seconds,new CodePrimitiveExpression(0)));
7495
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.Int64"),ticks,new CodePrimitiveExpression(0)));
7513
codeThrowException.CreateType = new
CodeTypeReference
(PublicNamesUsed["ArgumentOutOfRangeException"].ToString());
7585
tryblock.TryStatements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.String"),strTemp,
7714
codeThrowExceptionWithArgs.CreateType = new
CodeTypeReference
7741
coce.CreateType = new
CodeTypeReference
("System.TimeSpan");
7748
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),timespan,coce));
7759
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new
CodeTypeReference
("System.TimeSpan"),tsTemp,cmie));
System.Runtime.Serialization (5)
System\Runtime\Serialization\CodeExporter.cs (4)
366
return new
CodeTypeReference
(type);
451
contractCodeDomInfo.TypeReference = new
CodeTypeReference
((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName);
503
contractCodeDomInfo.TypeReference = new
CodeTypeReference
(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName);
613
typeReference = new
CodeTypeReference
(GetElementTypeReference(itemContract, isItemTypeNullable), 1);
System\Runtime\Serialization\DataContract.cs (1)
1868
CodeTypeReference typeReference = new
CodeTypeReference
(fullTypeName);
System.ServiceModel (31)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
17
CodeTypeReference refT = new
CodeTypeReference
(typeof(T));
System\ServiceModel\Description\ClientClassGenerator.cs (20)
52
static CodeTypeReference voidTypeRef = new
CodeTypeReference
(typeof(void));
53
static CodeTypeReference asyncResultTypeRef = new
CodeTypeReference
(typeof(IAsyncResult));
168
clientType.BaseTypes.Add(new
CodeTypeReference
(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ClientBase<>)).BaseType, context.ContractTypeReference));
170
clientType.BaseTypes.Add(new
CodeTypeReference
(context.ServiceContractGenerator.GetCodeTypeReference(typeof(DuplexClientBase<>)).BaseType, context.ContractTypeReference));
254
CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(EditorBrowsableAttribute)));
520
argsType.BaseTypes.Add(new
CodeTypeReference
(asyncCompletedEventArgsType));
524
resultsField.Type = new
CodeTypeReference
(objectArrayType);
621
operationCompletedEvent.Type = new
CodeTypeReference
(eventHandlerType);
644
beginOperationDelegate.Type = new
CodeTypeReference
(beginOperationDelegateTypeName);
657
onBeginOperationMethod.ReturnType = new
CodeTypeReference
(asyncResultType);
662
inValuesParam.Type = new
CodeTypeReference
(objectArrayType);
699
endOperationDelegate.Type = new
CodeTypeReference
(endOperationDelegateTypeName);
711
onEndOperationMethod.ReturnType = new
CodeTypeReference
(objectArrayType);
717
retArray.CreateType = new
CodeTypeReference
(objectArrayType);
774
operationCompletedDelegate.Type = new
CodeTypeReference
(sendOrPostCallbackType);
790
operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(objectType), "state"));
791
operationCompletedMethod.ReturnType = new
CodeTypeReference
(voidType);
848
eventAsyncMethod.ReturnType = new
CodeTypeReference
(voidType);
850
CodeArrayCreateExpression invokeAsyncInValues = new CodeArrayCreateExpression(new
CodeTypeReference
(objectArrayType));
863
eventAsyncMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(objectType), userStateParamName));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
146
static CodeTypeReference dataContractAttributeTypeRef = new
CodeTypeReference
(typeof(DataContractAttribute));
System\ServiceModel\Description\MessageContractImporter.cs (2)
2031
return new
CodeTypeReference
(this.xmlSerializerOperationGenerator.GetTypeName(membersMapping[0]));
2052
return new
CodeTypeReference
(this.xmlSerializerOperationGenerator.GetTypeName(membersMapping[0]));
System\ServiceModel\Description\OperationGenerator.cs (2)
965
taskReturnType = new
CodeTypeReference
(ServiceReflector.taskType);
969
taskReturnType = new
CodeTypeReference
(this.Context.ServiceContractGenerator.GetCodeTypeReference(ServiceReflector.taskTResultType).BaseType, resultType);
System\ServiceModel\Description\ServiceContractGenerator.cs (3)
71
return new
CodeTypeReference
(type);
643
static CodeTypeReference voidTypeReference = new
CodeTypeReference
(typeof(void));
819
CodeTypeReference codeTypeReference = new
CodeTypeReference
(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
169
CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(ServiceKnownTypeAttribute)));
200
operationGenerator.ParameterTypes.Add(part, new
CodeTypeReference
(part.BaseType));
System.ServiceModel.Activation (4)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (4)
164
codeTypeDeclaration.BaseTypes.Add(new
CodeTypeReference
(typeof(WorkflowService)));
169
codeMemberMethod.ReturnType = new
CodeTypeReference
(typeof(ICompiledExpressionRoot));
171
new
CodeTypeReference
(typeof(Activity)),
174
CodeTypeReference typeRef = new
CodeTypeReference
(activityNamespace + "." + activityName);
System.Web (75)
Compilation\AssemblyBuilder.cs (9)
521
new
CodeTypeReference
(typeof(System.Reflection.AssemblyCultureAttribute)),
532
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)));
542
new
CodeTypeReference
(typeof(AllowPartiallyTrustedCallersAttribute)));
551
new
CodeTypeReference
(typeof(AssemblyKeyFileAttribute)),
561
new
CodeTypeReference
(typeof(AssemblyKeyNameAttribute)),
571
new
CodeTypeReference
(typeof(AssemblyDelaySignAttribute)),
593
declaration = new CodeAttributeDeclaration(new
CodeTypeReference
(attrType), new CodeAttributeArgument(field));
600
declaration = new CodeAttributeDeclaration(new
CodeTypeReference
(attrType), new CodeAttributeArgument(field));
608
new
CodeTypeReference
(typeof(System.Runtime.Versioning.TargetFrameworkAttribute)),
Compilation\BaseCodeDomTreeGenerator.cs (8)
369
method.ReturnType = new
CodeTypeReference
(typeof(void));
423
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(t));
526
prop.Type = new
CodeTypeReference
(typeName);
553
prop.Type = new
CodeTypeReference
(propType);
613
prop.Type = new
CodeTypeReference
(propType);
661
prop.Type = new
CodeTypeReference
(declaredType);
781
method.ReturnType = new
CodeTypeReference
(typeof(void));
918
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(System.Diagnostics.DebuggerNonUserCodeAttribute)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (12)
129
parserDeclaration.Type = new
CodeTypeReference
(typeof(IParserAccessor));
202
method.ReturnType = new
CodeTypeReference
(typeof(Control));
209
method.ReturnType = new
CodeTypeReference
(typeof(Control));
347
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildTemplateMethod));
366
((CodeDelegateCreateExpression)newExtractValuesDelegate).DelegateType = new
CodeTypeReference
(typeof(ExtractTemplateValuesMethod));
557
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildTemplateMethod));
687
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildMethod));
881
newDelegate.DelegateType = new
CodeTypeReference
(typeof(EventHandler));
894
newDelegate.DelegateType = new
CodeTypeReference
(typeof(EventHandler));
904
newDelegate.DelegateType = new
CodeTypeReference
(typeof(RenderMethod));
946
newDelegate.DelegateType = new
CodeTypeReference
(eventEntry.HandlerType);
987
method.ReturnType = new
CodeTypeReference
(typeof(IOrderedDictionary));
Compilation\BrowserCapabilitiesCompiler.cs (4)
290
factoryType.BaseTypes.Add(new
CodeTypeReference
(baseType));
299
method.ReturnType = new
CodeTypeReference
(typeof(void));
343
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
424
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
Compilation\CodeDOMUtility.cs (3)
69
exp.CreateType = new
CodeTypeReference
(valueType.GetElementType());
359
return new
CodeTypeReference
(typeName, CodeTypeReferenceOptions.GlobalReference);
363
return new
CodeTypeReference
(type, CodeTypeReferenceOptions.GlobalReference);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (2)
85
method.ReturnType = new
CodeTypeReference
(typeof(object));
136
new
CodeTypeReference
(typeof(System.InvalidOperationException)),
Compilation\PageCodeDomTreeGenerator.cs (12)
45
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IRequiresSessionState)));
48
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IReadOnlySessionState)));
53
_sourceDataClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
78
dependencies.Type = new
CodeTypeReference
(typeof(string[]));
197
outputCacheSettingsDeclaration.Type = new
CodeTypeReference
(typeof(OutputCacheParameters));
203
cacheSettingsObject.CreateType = new
CodeTypeReference
(typeof(OutputCacheParameters));
353
method.ReturnType = new
CodeTypeReference
(typeof(int));
459
method.ImplementationTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
463
method.ReturnType = new
CodeTypeReference
(typeof(IAsyncResult));
517
method.ImplementationTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
521
method.ReturnType = new
CodeTypeReference
(typeof(IAsyncResult));
586
_sourceDataClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IHttpHandler)));
Compilation\PageThemeCodeDomTreeGenerator.cs (3)
28
private CodeTypeReference _controlSkinDelegateType = new
CodeTypeReference
(typeof(ControlSkinDelegate));
29
private CodeTypeReference _controlSkinType = new
CodeTypeReference
(typeof(ControlSkin));
45
member.Type = new
CodeTypeReference
(type.FullName);
Compilation\ProfileBuildProvider.cs (5)
111
type.BaseTypes.Add(new
CodeTypeReference
(baseType));
114
type.BaseTypes.Add(new
CodeTypeReference
(ProfileBase.InheritsFromTypeString));
241
prop.Type = new
CodeTypeReference
("ProfileGroup" + groupName);
261
grpType.BaseTypes.Add(new
CodeTypeReference
(typeof(ProfileGroupBase)));
278
method.ReturnType = new
CodeTypeReference
(/*BaseCodeDomTreeGenerator.defaultNamespace + "." + */ ProfileTypeName);
Compilation\RouteValueExpressionBuilder.cs (1)
35
new CodeTypeOfExpression(new
CodeTypeReference
(entry.ControlType)),
Compilation\TemplateControlCodeDomTreeGenerator.cs (6)
126
prop.Type = new
CodeTypeReference
(propertyType);
154
bindMethod.ReturnType = new
CodeTypeReference
(typeof(string));
236
prop.Type = new
CodeTypeReference
(typeof(bool));
262
prop.Type = new
CodeTypeReference
(appType);
308
var customAttrExpr = new CodeAttributeDeclaration(new
CodeTypeReference
(attr.AttributeType), attrArgs.ToArray());
312
var defaultValAttrExpr = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DefaultParameterValueAttribute)),
Configuration\BrowserCapabilitiesCodeGenerator.cs (8)
729
factoryType.BaseTypes.Add(new
CodeTypeReference
("System.Web.Configuration.BrowserCapabilitiesFactoryBase"));
735
method.ReturnType = new
CodeTypeReference
(typeof(void));
897
method.ReturnType = new
CodeTypeReference
(typeof(void));
899
new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IDictionary)), _dictionaryRefName);
960
method.ReturnType = new
CodeTypeReference
(typeof(void));
962
new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IDictionary)), _dictionaryRefName);
991
cmm.ReturnType = new
CodeTypeReference
(typeof(bool));
1102
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
Profile\HttpProfileBase.cs (2)
339
prop.PropertyCodeRefType = new
CodeTypeReference
(pps.Type);
342
prop.PropertyCodeRefType = new
CodeTypeReference
(t);
System.Web.Services (9)
System\Web\Services\Description\WebCodeGenerator.cs (9)
91
prop.Type = new
CodeTypeReference
(typeName);
170
method.ReturnType = new
CodeTypeReference
(returnTypeName);
260
eventCompleted.Type = new
CodeTypeReference
(handlerType);
280
callback.Type = new
CodeTypeReference
(typeof(SendOrPostCallback));
300
create.CreateType = new
CodeTypeReference
(handlerArgs);
304
create.CreateType = new
CodeTypeReference
(typeof(AsyncCompletedEventArgs));
339
createDelegate.DelegateType = new
CodeTypeReference
(typeof(SendOrPostCallback));
359
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(AsyncCompletedEventArgs)));
404
prop.Type = new
CodeTypeReference
(typeName);
System.Workflow.Activities (15)
Common\DelegateTypeInfo.cs (2)
108
parameters[index] = new CodeParameterDeclarationExpression(new
CodeTypeReference
(paramType), paramName);
112
this.returnType = new
CodeTypeReference
(method.ReturnType);
Rules\Expressions.cs (1)
1940
CodeTypeReference newType = new
CodeTypeReference
();
Rules\Parser\Parser.cs (3)
1361
CodeTypeReference typeRef = new
CodeTypeReference
(type);
1804
CodeTypeReference typeRef = new
CodeTypeReference
(type);
2216
CodeTypeReference typeRef = new
CodeTypeReference
(type);
WebServiceReceive.cs (9)
758
typeDeclaration.BaseTypes.Add(new
CodeTypeReference
("WorkflowWebService"));
789
webMethod.ReturnType = new
CodeTypeReference
(methodInfo.ReturnType);
801
paramArrayCreationExpression.CreateType = new
CodeTypeReference
(typeof(Object));
809
paramDecl.Type = new
CodeTypeReference
(paramInfo.ParameterType.GetElementType().FullName);
813
paramDecl.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(System.Runtime.InteropServices.OutAttribute))));
820
paramDecl.Type = new
CodeTypeReference
(paramInfo.ParameterType.FullName);
842
CodeVariableDeclarationStatement resultsDeclaration = new CodeVariableDeclarationStatement(new
CodeTypeReference
(new
CodeTypeReference
(typeof(Object)), 1), "results");
851
CodeExpression rightExpression = new CodeCastExpression(new
CodeTypeReference
(pinfo.ParameterType.GetElementType().FullName), new CodeIndexerExpression(new CodeVariableReferenceExpression("results"), new CodePrimitiveExpression(i + iStartIndex)));
System.Workflow.ComponentModel (9)
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (2)
63
codeAddMethod.ReturnType = new
CodeTypeReference
(typeof(void));
82
codeRemoveMethod.ReturnType = new
CodeTypeReference
(typeof(void));
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (2)
93
result = new
CodeTypeReference
(type);
104
result = new
CodeTypeReference
(value);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
119
codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, "SetBinding", new CodeExpression[] { param1, new CodeCastExpression(new
CodeTypeReference
(typeof(ActivityBind)), param2) });
151
CodeDelegateCreateExpression listener = new CodeDelegateCreateExpression(new
CodeTypeReference
(eventDesc.EventType), new CodeThisReferenceExpression(), handler);
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
87
return new CodeCastExpression(new
CodeTypeReference
(value.GetType()), expression);
Shared\DelegateTypeInfo.cs (2)
107
parameters[index] = new CodeParameterDeclarationExpression(new
CodeTypeReference
(paramType), paramName);
111
this.returnType = new
CodeTypeReference
(method.ReturnType);
System.Xml (7)
System\Xml\Serialization\CodeExporter.cs (4)
219
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(long)));
300
prop.Type = new
CodeTypeReference
(typeName);
338
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(System.ComponentModel.INotifyPropertyChanged)));
373
propertyChangedEvent.Type = new
CodeTypeReference
(typeof(PropertyChangedEventHandler));
System\Xml\Serialization\XmlCodeExporter.cs (2)
272
initExpression = new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(DateTime)), new CodeExpression[] {new CodePrimitiveExpression(ticks)});
278
initExpression = new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(Guid)), new CodeExpression[] {valueExpression});
System\Xml\Serialization\XmlSchemaImporter.cs (1)
398
CodeGenerator.ValidateIdentifiers(new
CodeTypeReference
(typeName));
XamlBuildTask (21)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (20)
81
generatedCodeAttribute = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(System.CodeDom.Compiler.GeneratedCodeAttribute).FullName),
94
result.Members.Add(new CodeMemberField() { Name = "_contentLoaded", Type = new
CodeTypeReference
(typeof(bool)) });
137
result.BaseTypes.Add(new
CodeTypeReference
(typeof(ISupportInitialize)));
231
attributeCollection.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(clrTypeName), arguments));
271
codeExp = new CodeCastExpression { TargetType = new
CodeTypeReference
(typeof(object)), Expression = new CodePrimitiveExpression(null) };
391
new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerNonUserCodeAttribute))),
489
Type = new
CodeTypeReference
(classData.Name)
701
ReturnType = new
CodeTypeReference
(typeof(string)),
724
Type = new
CodeTypeReference
(classData.Name)
742
Type = new
CodeTypeReference
(typeof(int)),
769
Type = new
CodeTypeReference
(typeof(string)),
820
CreateType = new
CodeTypeReference
(typeof(InvalidOperationException)),
834
CodeTypeReference ifaceType = new
CodeTypeReference
(typeof(ISupportInitialize));
969
codeTypeReference = new
CodeTypeReference
(propClrTypeName);
1094
Type = new
CodeTypeReference
(typeof(IList<Assembly>)),
1102
Type = new
CodeTypeReference
(typeof(IList<Assembly>)),
1144
Type = new
CodeTypeReference
(typeof(WeakReference)),
1152
Type = new
CodeTypeReference
(typeof(XamlSchemaContext)),
1215
ReturnType = new
CodeTypeReference
(typeof(Assembly))
1294
ReturnType = new
CodeTypeReference
(typeof(IList<Assembly>)),
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
18
Type = new
CodeTypeReference
(type),
547 references to CodeTypeReference
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1255
var
iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
2246
private static
CodeTypeReference
GenerateConstructedTypeReference(Type t, string [] typeArgsList, string genericName)
2248
CodeTypeReference
ctrConstructedType = null;
2291
private static
CodeTypeReference
GenerateConstructedTypeReference(Type t, string [] typeArgsList, Type refType, string refTypeFullName, string eventName)
2293
CodeTypeReference
ctrConstructedType = null;
2299
CodeTypeReference
ctrTypeArg = null;
2402
CodeTypeReference
ctrBaseClass = null;
3295
internal
CodeTypeReference
ElementTypeReference
3314
protected
CodeTypeReference
_ctrElemTypeRef = null;
System (112)
compmod\microsoft\csharp\csharpcodeprovider.cs (7)
698
private void OutputType(
CodeTypeReference
typeRef) {
2414
foreach (
CodeTypeReference
typeRef in e.BaseTypes) {
2701
private void OutputTypeNamePair(
CodeTypeReference
typeRef, string name) {
2746
foreach (
CodeTypeReference
typeRef in typeParameters[i].Constraints) {
3194
private string GetBaseTypeOutput(
CodeTypeReference
typeRef) {
3332
public string GetTypeOutput(
CodeTypeReference
typeRef) {
3335
CodeTypeReference
baseTypeRef = typeRef;
compmod\microsoft\visualbasic\VBCodeProvider.cs (13)
923
protected override void OutputType(
CodeTypeReference
typeRef) {
999
protected override void OutputTypeNamePair(
CodeTypeReference
typeRef, string name) {
1009
private string GetArrayPostfix(
CodeTypeReference
typeRef) {
1030
private void OutputArrayPostfix(
CodeTypeReference
typeRef) {
1650
CodeTypeReference
typeRef = e.Type;
1736
foreach (
CodeTypeReference
type in e.ImplementationTypes) {
1895
foreach (
CodeTypeReference
type in e.ImplementationTypes) {
2025
foreach (
CodeTypeReference
type in e.ImplementationTypes) {
2237
foreach (
CodeTypeReference
typeRef in e.BaseTypes) {
2300
foreach (
CodeTypeReference
typeRef in constraints) {
2626
private string GetBaseTypeOutput(
CodeTypeReference
typeRef) {
2729
private string GetTypeOutputWithoutArrayPostFix(
CodeTypeReference
typeRef) {
2766
protected override string GetTypeOutput(
CodeTypeReference
typeRef) {
compmod\system\codedom\CodeArrayCreateExpression.cs (5)
27
private
CodeTypeReference
createType;
46
public CodeArrayCreateExpression(
CodeTypeReference
createType, params CodeExpression[] initializers) {
73
public CodeArrayCreateExpression(
CodeTypeReference
createType, int size) {
100
public CodeArrayCreateExpression(
CodeTypeReference
createType, CodeExpression size) {
127
public
CodeTypeReference
CreateType {
compmod\system\codedom\CodeAttributeDeclaration.cs (4)
32
private
CodeTypeReference
attributeType;
62
public CodeAttributeDeclaration(
CodeTypeReference
attributeType) : this ( attributeType, null) {
65
public CodeAttributeDeclaration(
CodeTypeReference
attributeType, params CodeAttributeArgument[] arguments) {
102
public
CodeTypeReference
AttributeType {
compmod\system\codedom\CodeCastExpression.cs (3)
29
private
CodeTypeReference
targetType;
46
public CodeCastExpression(
CodeTypeReference
targetType, CodeExpression expression) {
72
public
CodeTypeReference
TargetType {
compmod\system\codedom\CodeCatchClause.cs (4)
27
private
CodeTypeReference
catchExceptionType;
48
public CodeCatchClause(string localName,
CodeTypeReference
catchExceptionType) {
56
public CodeCatchClause(string localName,
CodeTypeReference
catchExceptionType, params CodeStatement[] statements) {
77
public
CodeTypeReference
CatchExceptionType {
compmod\system\codedom\CodeDefaultValueExpression.cs (3)
16
private
CodeTypeReference
type;
21
public CodeDefaultValueExpression(
CodeTypeReference
type) {
25
public
CodeTypeReference
Type {
compmod\system\codedom\CodeDelegateCreateExpression.cs (3)
28
private
CodeTypeReference
delegateType;
45
public CodeDelegateCreateExpression(
CodeTypeReference
delegateType, CodeExpression targetObject, string methodName) {
56
public
CodeTypeReference
DelegateType {
compmod\system\codedom\CodeMemberEvent.cs (4)
28
private
CodeTypeReference
type;
29
private
CodeTypeReference
privateImplements = null;
43
public
CodeTypeReference
Type {
58
public
CodeTypeReference
PrivateImplementationType {
compmod\system\codedom\CodeMemberField.cs (3)
28
private
CodeTypeReference
type;
45
public CodeMemberField(
CodeTypeReference
type, string name) {
71
public
CodeTypeReference
Type {
compmod\system\codedom\CodeMemberMethod.cs (4)
31
private
CodeTypeReference
returnType;
32
private
CodeTypeReference
privateImplements = null;
70
public
CodeTypeReference
ReturnType {
115
public
CodeTypeReference
PrivateImplementationType {
compmod\system\codedom\CodeMemberProperty.cs (4)
28
private
CodeTypeReference
type;
34
private
CodeTypeReference
privateImplements = null;
40
public
CodeTypeReference
PrivateImplementationType {
64
public
CodeTypeReference
Type {
compmod\system\codedom\codemethodreferenceexpression.cs (1)
54
public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params
CodeTypeReference
[] typeParameters) {
compmod\system\codedom\CodeObjectCreateExpression.cs (3)
28
private
CodeTypeReference
createType;
45
public CodeObjectCreateExpression(
CodeTypeReference
createType, params CodeExpression[] parameters) {
71
public
CodeTypeReference
CreateType {
compmod\system\codedom\CodeParameterDeclarationExpression.cs (3)
28
private
CodeTypeReference
type;
47
public CodeParameterDeclarationExpression(
CodeTypeReference
type, string name) {
106
public
CodeTypeReference
Type {
compmod\system\codedom\CodeTypeDelegate.cs (2)
31
private
CodeTypeReference
returnType;
59
public
CodeTypeReference
ReturnType {
compmod\system\codedom\CodeTypeOfExpression.cs (3)
28
private
CodeTypeReference
type;
43
public CodeTypeOfExpression(
CodeTypeReference
type) {
66
public
CodeTypeReference
Type {
compmod\system\codedom\CodeTypeReference.cs (7)
44
private
CodeTypeReference
arrayElementType;
225
CodeTypeReference
type = new CodeTypeReference(typeName.Substring(0, end + 1), Options);
228
type.TypeArguments.Add((
CodeTypeReference
)typeArgumentList[i]);
243
TypeArguments.Add((
CodeTypeReference
)typeArgumentList[i]);
258
public CodeTypeReference(string typeName, params
CodeTypeReference
[] typeArguments) : this(typeName){
281
public CodeTypeReference(
CodeTypeReference
arrayType, int rank) {
290
public
CodeTypeReference
ArrayElementType {
compmod\system\codedom\CodeTypeReferenceCollection.cs (18)
17
/// A collection that stores <see cref='System.CodeDom.
CodeTypeReference
'/> objects.
46
/// Initializes a new instance of <see cref='System.CodeDom.CodeTypeReferenceCollection'/> containing any array of <see cref='System.CodeDom.
CodeTypeReference
'/> objects.
49
public CodeTypeReferenceCollection(
CodeTypeReference
[] value) {
54
/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.
CodeTypeReference
'/>.</para>
56
public
CodeTypeReference
this[int index] {
58
return ((
CodeTypeReference
)(List[index]));
66
/// <para>Adds a <see cref='System.CodeDom.
CodeTypeReference
'/> with the specified value to the
69
public int Add(
CodeTypeReference
value) {
90
public void AddRange(
CodeTypeReference
[] value) {
116
/// <see cref='System.CodeDom.CodeTypeReferenceCollection'/> contains the specified <see cref='System.CodeDom.
CodeTypeReference
'/>.</para>
118
public bool Contains(
CodeTypeReference
value) {
126
public void CopyTo(
CodeTypeReference
[] array, int index) {
131
/// <para>Returns the index of a <see cref='System.CodeDom.
CodeTypeReference
'/> in
134
public int IndexOf(
CodeTypeReference
value) {
139
/// <para>Inserts a <see cref='System.CodeDom.
CodeTypeReference
'/> into the <see cref='System.CodeDom.CodeTypeReferenceCollection'/> at the specified index.</para>
141
public void Insert(int index,
CodeTypeReference
value) {
146
/// <para> Removes a specific <see cref='System.CodeDom.
CodeTypeReference
'/> from the
149
public void Remove(
CodeTypeReference
value) {
compmod\system\codedom\CodeTypeReferenceExpression.cs (3)
28
private
CodeTypeReference
type;
43
public CodeTypeReferenceExpression(
CodeTypeReference
type) {
66
public
CodeTypeReference
Type {
compmod\system\codedom\CodeVariableDeclarationStatement.cs (4)
28
private
CodeTypeReference
type;
45
public CodeVariableDeclarationStatement(
CodeTypeReference
type, string name) {
72
public CodeVariableDeclarationStatement(
CodeTypeReference
type, string name, CodeExpression initExpression) {
129
public
CodeTypeReference
Type {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
200
public virtual string GetTypeOutput(
CodeTypeReference
type) {
compmod\system\codedom\compiler\CodeGenerator.cs (4)
546
string ICodeGenerator.GetTypeOutput(
CodeTypeReference
type) {
1139
protected abstract void OutputType(
CodeTypeReference
typeRef);
1186
protected virtual void OutputTypeNamePair(
CodeTypeReference
typeRef, string name) {
1901
protected abstract string GetTypeOutput(
CodeTypeReference
value);
compmod\system\codedom\compiler\CodeValidator.cs (5)
47
else if (e is
CodeTypeReference
) {
48
ValidateTypeReference((
CodeTypeReference
)e);
337
foreach (
CodeTypeReference
typeRef in e.BaseTypes) {
534
private static void ValidateTypeReference(
CodeTypeReference
e) {
547
private static void ValidateArity(
CodeTypeReference
e) {
compmod\system\codedom\compiler\ICodeGenerator.cs (1)
51
string GetTypeOutput(
CodeTypeReference
type);
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1174
new
CodeTypeReference
[] { new CodeTypeReference(descriptor.ResultType) });
System.Data (5)
fx\src\data\System\Data\CodeGen\datacache.cs (5)
1421
private static
CodeTypeReference
Type(string type) { return new CodeTypeReference(type); }
1422
private static
CodeTypeReference
Type(Type type) { return new CodeTypeReference(type); }
1424
private static
CodeTypeReference
Type(string type, Int32 rank) { return new CodeTypeReference(type, rank); }
1430
private static CodeExpression Cast(
CodeTypeReference
type, CodeExpression expr) { return new CodeCastExpression(type, expr); }
1504
private static CodeMemberMethod Method(
CodeTypeReference
type, String name, MemberAttributes attributes) {
System.Data.Entity.Design (113)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
72
CodeTypeReference
subTypeRef;
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (3)
430
public
CodeTypeReference
GetFullyQualifiedTypeReference(EdmType type)
436
public
CodeTypeReference
GetFullyQualifiedTypeReference(EdmType type, bool addGlobalQualifier)
452
public
CodeTypeReference
GetLeastPossibleQualifiedTypeReference(EdmType type)
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (2)
52
protected override
CodeTypeReference
GetBaseType()
54
CodeTypeReference
baseType = base.GetBaseType();
System\Data\EntityModel\Emitters\Emitter.cs (1)
64
internal static CodeExpression EmitEnumMemberExpression(
CodeTypeReference
type, string member)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (7)
65
CodeTypeReference
objectContextTypeRef = TypeReference.ObjectContext;
300
CodeTypeReference
genericParameter = Generator.GetLeastPossibleQualifiedTypeReference(set.ElementType);
338
CodeTypeReference
genericParameter = Generator.GetLeastPossibleQualifiedTypeReference(set.ElementType);
395
new
CodeTypeReference
[] { genericParameter }
513
CodeTypeReference
elementType = Generator.GetLeastPossibleQualifiedTypeReference(returnType);
553
new
CodeTypeReference
[] { elementType });
635
CodeTypeReference
argumentType = clrType.IsValueType ? TypeReference.NullableForType(clrType) : TypeReference.ForType(clrType);
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (2)
86
protected override
CodeTypeReference
GetBaseType()
88
CodeTypeReference
baseType = base.GetBaseType();
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
77
CodeTypeReference
typeRef = GetReturnType(target, referenceProperty);
312
private
CodeTypeReference
GetReturnType(RelationshipEndMember target, bool referenceMethod)
314
CodeTypeReference
returnType = Generator.GetLeastPossibleQualifiedTypeReference(GetEntityType(target));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (25)
42
public CodeMemberProperty EmitPropertyDeclaration(
CodeTypeReference
propertyReturnType)
59
CodeTypeReference
typeRef = PropertyType;
92
private void EmitPropertyOnChangePartialMethods(CodeTypeDeclaration typeDecl,
CodeTypeReference
returnType)
113
private void EmitField(CodeTypeDeclaration typeDecl,
CodeTypeReference
fieldType)
147
public
CodeTypeReference
PropertyType
151
CodeTypeReference
typeRef = GetType(Item, false);
565
private
CodeTypeReference
GetType(EdmProperty property, bool getElementType)
798
CodeTypeReference
_nonNullable;
799
CodeTypeReference
_nullable;
822
CodeTypeReference
primitiveTypeRef = typeReference.ForType(type);
823
CodeTypeReference
collectionType = GetCollectionTypeReference(typeReference, primitiveTypeRef, collectionKind);
831
CodeTypeReference
baseType = generator.GetLeastPossibleQualifiedTypeReference(complexType);
837
private static
CodeTypeReference
GetCollectionTypeReference(TypeReference typeReference,
CodeTypeReference
baseType, CollectionKind collectionKind)
860
private static
CodeTypeReference
GetCollectionTypeReferenceForBagSemantics(TypeReference typeReference,
CodeTypeReference
baseType)
862
CodeTypeReference
typeRef = typeReference.ForType(typeof(System.Collections.Generic.ICollection<>), baseType);
866
private static
CodeTypeReference
GetCollectionTypeReferenceForListSemantics(TypeReference typeReference,
CodeTypeReference
baseType)
868
CodeTypeReference
typeRef = typeReference.ForType(typeof(System.Collections.Generic.IList<>), baseType);
872
public
CodeTypeReference
NonNullable
876
public
CodeTypeReference
Nullable
909
private CodeMemberProperty EmitPropertyDeclaration(MemberAttributes scope,
CodeTypeReference
propertyType, bool isVirtual,
935
private void DisallowReturnTypeChange(
CodeTypeReference
baseType,
CodeTypeReference
newType)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (6)
45
CodeTypeReference
baseType = this.GetBaseType();
93
protected virtual
CodeTypeReference
GetBaseType()
168
CodeTypeReference
typeRef = TypeReference.FromString(Item.Name);
199
CodeTypeReference
propertyTypeReference = propertyEmitter.PropertyType;
294
CodeTypeReference
baseType,
295
CodeTypeReference
eventReturnedBaseType)
System\Data\EntityModel\Emitters\TypeReference.cs (57)
35
private static
CodeTypeReference
_byteArray;
36
private static
CodeTypeReference
_dateTime;
37
private static
CodeTypeReference
_dateTimeOffset;
38
private static
CodeTypeReference
_guid;
39
private static
CodeTypeReference
_objectContext;
40
private static
CodeTypeReference
_string;
41
private static
CodeTypeReference
_timeSpan;
42
private readonly Memoizer<Type,
CodeTypeReference
> _forTypeMemoizer;
43
private readonly Memoizer<Type,
CodeTypeReference
> _nullableForTypeMemoizer;
44
private readonly Memoizer<KeyValuePair<string, bool>,
CodeTypeReference
> _fromStringMemoizer;
45
private readonly Memoizer<KeyValuePair<string,
CodeTypeReference
>,
CodeTypeReference
> _fromStringGenericMemoizer;
51
_forTypeMemoizer = new Memoizer<Type,
CodeTypeReference
>(ComputeForType, null);
52
_fromStringMemoizer = new Memoizer<KeyValuePair<string, bool>,
CodeTypeReference
>(ComputeFromString, null);
53
_nullableForTypeMemoizer = new Memoizer<Type,
CodeTypeReference
>(ComputeNullableForType, null);
54
_fromStringGenericMemoizer = new Memoizer<KeyValuePair<string,
CodeTypeReference
>,
CodeTypeReference
>(ComputeFromStringGeneric, null);
64
public
CodeTypeReference
ForType(Type type)
69
private
CodeTypeReference
ComputeForType(Type type)
73
CodeTypeReference
value = new CodeTypeReference(type, CodeTypeReferenceOptions.GlobalReference);
85
public
CodeTypeReference
ForType(Type generic,
CodeTypeReference
argument)
89
CodeTypeReference
typeRef = new CodeTypeReference(generic, CodeTypeReferenceOptions.GlobalReference);
100
public
CodeTypeReference
FromString(string type)
112
public
CodeTypeReference
FromString(string type, bool addGlobalQualifier)
117
private
CodeTypeReference
ComputeFromString(KeyValuePair<string, bool> arguments)
121
CodeTypeReference
value;
138
public
CodeTypeReference
AdoFrameworkType(string name)
148
public
CodeTypeReference
AdoFrameworkDataClassesType(string name)
158
public
CodeTypeReference
AdoFrameworkMetadataEdmType(string name)
168
public
CodeTypeReference
AdoEntityClientType(string name)
179
public
CodeTypeReference
AdoFrameworkGenericClass(string name,
CodeTypeReference
typeParameter)
189
public
CodeTypeReference
AdoFrameworkGenericDataClass(string name,
CodeTypeReference
typeParameter)
201
private
CodeTypeReference
FrameworkGenericClass(string namespaceName, string name,
CodeTypeReference
typeParameter)
203
return _fromStringGenericMemoizer.Evaluate(new KeyValuePair<string,
CodeTypeReference
>(namespaceName + "." + name, typeParameter));
206
private
CodeTypeReference
ComputeFromStringGeneric(KeyValuePair<string,
CodeTypeReference
> arguments)
209
CodeTypeReference
typeParameter = arguments.Value;
210
CodeTypeReference
typeRef = ComputeFromString(new KeyValuePair<string, bool>(name, true));
220
public
CodeTypeReference
NullableForType(Type innerType)
225
private
CodeTypeReference
ComputeNullableForType(Type innerType)
229
CodeTypeReference
typeRef = new CodeTypeReference(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
237
public
CodeTypeReference
ObjectResult(
CodeTypeReference
elementType)
249
public
CodeTypeReference
ByteArray
265
public
CodeTypeReference
DateTime
281
public
CodeTypeReference
DateTimeOffset
297
public
CodeTypeReference
Guid
313
public
CodeTypeReference
ObjectContext
329
public
CodeTypeReference
ComplexTypeBaseClass
341
public
CodeTypeReference
EntityTypeBaseClass
352
public
CodeTypeReference
IEntityWithRelationshipsTypeBaseClass
363
public
CodeTypeReference
String
378
public
CodeTypeReference
TimeSpan
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (3)
28
private
CodeTypeReference
_returnType;
52
CodeTypeReference
returnType)
90
public
CodeTypeReference
ReturnType
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
27
private
CodeTypeReference
_baseType;
48
public TypeGeneratedEventArgs(GlobalItem typeSource,
CodeTypeReference
baseType)
69
public
CodeTypeReference
BaseType
System.Data.Services.Design (93)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
545
public
CodeTypeReference
GetLeastPossibleQualifiedTypeReference(EdmType type)
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (2)
48
protected override
CodeTypeReference
GetBaseType()
50
CodeTypeReference
baseType = base.GetBaseType();
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
60
CodeTypeReference
objectContextTypeRef = TypeReference.ObjectContext;
461
CodeTypeReference
genericParameter = Generator.GetLeastPossibleQualifiedTypeReference(set.ElementType);
499
CodeTypeReference
genericParameter = Generator.GetLeastPossibleQualifiedTypeReference(set.ElementType);
556
new
CodeTypeReference
[] { genericParameter }
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (2)
87
protected override
CodeTypeReference
GetBaseType()
89
CodeTypeReference
baseType = base.GetBaseType();
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
57
private void EmitField(CodeTypeDeclaration typeDecl,
CodeTypeReference
fieldType, bool hasDefault)
97
CodeTypeReference
typeRef = GetReturnType(target);
313
private
CodeTypeReference
GetReturnType(RelationshipEndMember target)
315
CodeTypeReference
returnType = Generator.GetLeastPossibleQualifiedTypeReference(GetEntityType(target));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (25)
48
public CodeMemberProperty EmitPropertyDeclaration(
CodeTypeReference
propertyReturnType)
65
CodeTypeReference
typeRef = PropertyType;
99
private void EmitPropertyOnChangePartialMethods(CodeTypeDeclaration typeDecl,
CodeTypeReference
returnType)
118
private void EmitField(CodeTypeDeclaration typeDecl,
CodeTypeReference
fieldType)
146
public
CodeTypeReference
PropertyType
150
CodeTypeReference
typeRef = GetType(Item, false);
490
private
CodeTypeReference
GetType(EdmProperty property, bool getElementType)
721
CodeTypeReference
_nonNullable;
722
CodeTypeReference
_nullable;
745
CodeTypeReference
primitiveTypeRef = typeReference.ForType(type);
746
CodeTypeReference
collectionType = GetCollectionTypeReference(typeReference, primitiveTypeRef, collectionKind);
754
CodeTypeReference
baseType = generator.GetLeastPossibleQualifiedTypeReference(complexType);
760
private static
CodeTypeReference
GetCollectionTypeReference(TypeReference typeReference,
CodeTypeReference
baseType, CollectionKind collectionKind)
783
private static
CodeTypeReference
GetCollectionTypeReferenceForBagSemantics(TypeReference typeReference,
CodeTypeReference
baseType)
785
CodeTypeReference
typeRef = typeReference.ForType(typeof(System.Collections.Generic.ICollection<>), baseType);
789
private static
CodeTypeReference
GetCollectionTypeReferenceForListSemantics(TypeReference typeReference,
CodeTypeReference
baseType)
791
CodeTypeReference
typeRef = typeReference.ForType(typeof(System.Collections.Generic.IList<>), baseType);
795
public
CodeTypeReference
NonNullable
799
public
CodeTypeReference
Nullable
834
private CodeMemberProperty EmitPropertyDeclaration(MemberAttributes scope,
CodeTypeReference
propertyType, bool isVirtual,
860
private void DisallowReturnTypeChange(
CodeTypeReference
baseType,
CodeTypeReference
newType)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (6)
36
CodeTypeReference
baseType = this.GetBaseType();
84
protected virtual
CodeTypeReference
GetBaseType()
158
CodeTypeReference
typeRef = TypeReference.FromString(Item.Name);
190
CodeTypeReference
propertyTypeReference = propertyEmitter.PropertyType;
292
CodeTypeReference
baseType,
293
CodeTypeReference
eventReturnedBaseType)
System\Data\EntityModel\Emitters\TypeReference.cs (43)
26
private static
CodeTypeReference
_byteArray;
27
private static
CodeTypeReference
_dateTime;
28
private static
CodeTypeReference
_guid;
29
private static
CodeTypeReference
_objectContext;
31
private readonly Memoizer<Type,
CodeTypeReference
> _forTypeMemoizer;
32
private readonly Memoizer<Type,
CodeTypeReference
> _nullableForTypeMemoizer;
33
private readonly Memoizer<KeyValuePair<string, bool>,
CodeTypeReference
> _fromStringMemoizer;
34
private readonly Memoizer<KeyValuePair<string,
CodeTypeReference
>,
CodeTypeReference
> _fromStringGenericMemoizer;
40
_forTypeMemoizer = new Memoizer<Type,
CodeTypeReference
>(ComputeForType, null);
41
_fromStringMemoizer = new Memoizer<KeyValuePair<string, bool>,
CodeTypeReference
>(ComputeFromString, null);
42
_nullableForTypeMemoizer = new Memoizer<Type,
CodeTypeReference
>(ComputeNullableForType, null);
43
_fromStringGenericMemoizer = new Memoizer<KeyValuePair<string,
CodeTypeReference
>,
CodeTypeReference
>(ComputeFromStringGeneric, null);
53
public
CodeTypeReference
ForType(Type type)
58
private
CodeTypeReference
ComputeForType(Type type)
62
CodeTypeReference
value = new CodeTypeReference(type, CodeTypeReferenceOptions.GlobalReference);
74
public
CodeTypeReference
ForType(Type generic, params
CodeTypeReference
[] argument)
78
CodeTypeReference
typeRef = new CodeTypeReference(generic, CodeTypeReferenceOptions.GlobalReference);
92
public
CodeTypeReference
FromString(string type)
104
public
CodeTypeReference
FromString(string type, bool addGlobalQualifier)
109
private
CodeTypeReference
ComputeFromString(KeyValuePair<string, bool> arguments)
113
CodeTypeReference
value;
130
public
CodeTypeReference
AdoFrameworkType(string name)
141
public
CodeTypeReference
AdoFrameworkGenericClass(string name,
CodeTypeReference
typeParameter)
153
public
CodeTypeReference
FrameworkGenericClass(string namespaceName, string name,
CodeTypeReference
typeParameter)
164
public
CodeTypeReference
FrameworkGenericClass(string fullname,
CodeTypeReference
typeParameter)
166
return _fromStringGenericMemoizer.Evaluate(new KeyValuePair<string,
CodeTypeReference
>(fullname, typeParameter));
169
private
CodeTypeReference
ComputeFromStringGeneric(KeyValuePair<string,
CodeTypeReference
> arguments)
172
CodeTypeReference
typeParameter = arguments.Value;
173
CodeTypeReference
typeRef = ComputeFromString(new KeyValuePair<string, bool>(name, true));
183
public
CodeTypeReference
NullableForType(Type innerType)
188
private
CodeTypeReference
ComputeNullableForType(Type innerType)
192
CodeTypeReference
typeRef = new CodeTypeReference(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
204
public
CodeTypeReference
ByteArray
218
public
CodeTypeReference
DateTime
231
public
CodeTypeReference
Guid
245
public
CodeTypeReference
ObjectContext
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (3)
25
private
CodeTypeReference
_returnType;
51
CodeTypeReference
returnType)
89
public
CodeTypeReference
ReturnType
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
24
private
CodeTypeReference
_baseType;
45
public TypeGeneratedEventArgs(GlobalItem typeSource,
CodeTypeReference
baseType)
66
public
CodeTypeReference
BaseType
System.Management (16)
WmiGenerator.cs (16)
1237
CodeTypeReference
dateType = cmp.Type;
2093
strType = ((
CodeTypeReference
)arrKeyType[i]).BaseType;
2113
if (((
CodeTypeReference
)arrKeyType[i]).BaseType == "System.String")
2129
cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((
CodeTypeReference
)arrKeyType[i]).BaseType + " "),new CodeVariableReferenceExpression("key"+arrKeys[i]));
2204
cpde.Type = new CodeTypeReference(((
CodeTypeReference
)arrKeyType[i]).BaseType);
2263
cpde.Type = new CodeTypeReference(((
CodeTypeReference
)arrKeyType[i]).BaseType);
2837
CodeTypeReference
retRefType = null;
2977
CodeTypeReference
dateType = cpde.Type;
3091
CodeTypeReference
dateType = cmm.ReturnType;
3109
CodeTypeReference
dateType = cpde.Type;
3228
new CodeCastExpression((
CodeTypeReference
)inoutParamsType[i],
3977
CodeTypeReference
crt = new CodeTypeReference(new CodeTypeReference("System.Attribute"),1);
4651
private
CodeTypeReference
ConvertCIMType(CimType cType,bool isArray)
5801
CodeTypeReference
arrPathType = new CodeTypeReference(
5923
CodeTypeReference
arrPathType =
6226
private bool GetDateTimeType(PropertyData prop,ref
CodeTypeReference
codeType )
System.Runtime.Serialization (36)
System\Runtime\Serialization\CodeExporter.cs (29)
353
internal
CodeTypeReference
GetCodeTypeReference(DataContract dataContract)
363
CodeTypeReference
GetCodeTypeReference(Type type)
369
internal
CodeTypeReference
GetElementTypeReference(DataContract dataContract, bool isElementTypeNullable)
371
CodeTypeReference
elementTypeReference = GetCodeTypeReference(dataContract);
412
CodeTypeReference
referencedType = GetReferencedType(dataContract);
536
CodeTypeReference
GetReferencedType(DataContract dataContract)
539
CodeTypeReference
typeReference = GetSurrogatedTypeReference(dataContract);
596
CodeTypeReference
GetReferencedCollectionType(CollectionDataContract collectionContract)
603
CodeTypeReference
typeReference;
634
bool TryGetReferencedDictionaryType(CollectionDataContract collectionContract, out
CodeTypeReference
typeReference)
646
CodeTypeReference
keyTypeReference = GetElementTypeReference(keyMember.MemberTypeContract, keyMember.IsNullable);
647
CodeTypeReference
valueTypeReference = GetElementTypeReference(valueMember.MemberTypeContract, valueMember.IsNullable);
660
bool TryGetReferencedListType(DataContract itemContract, bool isItemTypeNullable, out
CodeTypeReference
typeReference)
673
CodeTypeReference
GetSurrogatedTypeReference(DataContract dataContract)
685
CodeTypeReference
typeReference = GetCodeTypeReference(type);
693
CodeTypeReference
GetReferencedGenericType(GenericInfo genInfo, out DataContract dataContract)
714
CodeTypeReference
typeReference = GetCodeTypeReference(type);
725
CodeTypeReference
paramTypeReference;
871
CodeTypeReference
memberType = GetElementTypeReference(dataMember.MemberTypeContract,
920
internal ICollection<
CodeTypeReference
> GetKnownTypeReferences(DataContract dataContract)
930
List<
CodeTypeReference
> knownTypeReferences = new List<
CodeTypeReference
>();
1022
CodeTypeReference
WrapNullable(
CodeTypeReference
memberType)
1027
CodeTypeReference
nullableOfMemberType = GetCodeTypeReference(Globals.TypeOfNullable);
1204
CodeTypeReference
baseTypeReference;
1613
CodeTypeReference
CodeTypeIPropertyChange
1932
CodeMemberProperty CreateProperty(
CodeTypeReference
type, string propertyName, string fieldName, bool isValueType)
1937
CodeMemberProperty CreateProperty(
CodeTypeReference
type, string propertyName, string fieldName, bool isValueType, bool raisePropertyChanged)
System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
17
internal
CodeTypeReference
TypeReference;
System\Runtime\Serialization\DataContract.cs (3)
1868
CodeTypeReference
typeReference = new CodeTypeReference(fullTypeName);
1872
static void GetDefaultStableName(
CodeTypeReference
typeReference, out string localName, out string ns)
1889
foreach (
CodeTypeReference
typeArg in typeReference.TypeArguments)
System\Runtime\Serialization\XsdDataContractImporter.cs (3)
170
public
CodeTypeReference
GetCodeTypeReference(XmlQualifiedName typeName)
177
public
CodeTypeReference
GetCodeTypeReference(XmlQualifiedName typeName, XmlSchemaElement element)
204
public ICollection<
CodeTypeReference
> GetKnownTypeReferences(XmlQualifiedName typeName)
System.ServiceModel (96)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
17
CodeTypeReference
refT = new CodeTypeReference(typeof(T));
System\ServiceModel\Description\ClientClassGenerator.cs (9)
52
static
CodeTypeReference
voidTypeRef = new CodeTypeReference(typeof(void));
53
static
CodeTypeReference
asyncResultTypeRef = new CodeTypeReference(typeof(IAsyncResult));
166
CodeTypeReference
contractTypeRef = context.ContractTypeReference;
207
CodeTypeReference
declaringContractTypeRef = operationContext.DeclaringTypeReference;
232
static CodeMemberMethod GenerateClientClassMethod(CodeTypeDeclaration clientType,
CodeTypeReference
contractTypeRef, CodeMemberMethod method, bool addHelperMethod,
CodeTypeReference
declaringContractTypeRef)
262
private static CodeMemberMethod GenerateHelperMethod(
CodeTypeReference
ifaceType, CodeMemberMethod method)
469
static CodeMemberMethod GetImplementationOfMethod(
CodeTypeReference
ifaceType, CodeMemberMethod method)
597
CodeTypeReference
propertyType, string propertyName, CodeExpression propertyValueExpr)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (17)
20
Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>> knownTypes;
31
internal void Add(MessagePartDescription part,
CodeTypeReference
typeReference, ICollection<
CodeTypeReference
> knownTypeReferences, bool isNonNillableReferenceType)
54
internal Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>> KnownTypes
59
this.knownTypes = new Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>>();
86
Dictionary<
CodeTypeReference
, object> operationKnownTypes = new Dictionary<
CodeTypeReference
, object>(new CodeTypeReferenceComparer());
100
void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<
CodeTypeReference
, object> operationKnownTypes)
102
ICollection<
CodeTypeReference
> knownTypesForPart;
105
foreach (
CodeTypeReference
knownTypeReference in knownTypesForPart)
146
static
CodeTypeReference
dataContractAttributeTypeRef = new CodeTypeReference(typeof(DataContractAttribute));
238
class CodeTypeReferenceComparer : IEqualityComparer<
CodeTypeReference
>
240
public bool Equals(
CodeTypeReference
x,
CodeTypeReference
y)
252
foreach (
CodeTypeReference
xTypeArg in xTypeArgs)
254
foreach (
CodeTypeReference
yTypeArg in yTypeArgs)
264
public int GetHashCode(
CodeTypeReference
obj)
System\ServiceModel\Description\FaultDescription.cs (2)
19
CodeTypeReference
detailTypeReference;
48
internal
CodeTypeReference
DetailTypeReference
System\ServiceModel\Description\MessageContractImporter.cs (12)
596
CodeTypeReference
detailElementTypeRef;
1522
internal virtual
CodeTypeReference
ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1527
internal virtual
CodeTypeReference
ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
1683
CodeTypeReference
typeRef = DataContractImporter.GetCodeTypeReference(typeName);
1684
ICollection<
CodeTypeReference
> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName);
1743
CodeTypeReference
typeRef = DataContractImporter.GetCodeTypeReference(typeName, element);
1744
ICollection<
CodeTypeReference
> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName);
1756
CodeTypeReference
typeRef = DataContractImporter.GetCodeTypeReference(typeName, element);
1788
internal override
CodeTypeReference
ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1815
internal override
CodeTypeReference
ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
2025
internal override
CodeTypeReference
ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
2034
internal override
CodeTypeReference
ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
System\ServiceModel\Description\OperationContractGenerationContext.cs (2)
24
CodeTypeReference
declaringTypeReference;
108
internal
CodeTypeReference
DeclaringTypeReference
System\ServiceModel\Description\OperationGenerator.cs (27)
28
Dictionary<MessagePartDescription,
CodeTypeReference
> parameterTypes;
46
internal Dictionary<MessagePartDescription,
CodeTypeReference
> ParameterTypes
51
this.parameterTypes = new Dictionary<MessagePartDescription,
CodeTypeReference
>();
66
internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>> knownTypes)
99
readonly Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>> KnownTypes;
122
internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>> knownTypes)
285
CodeTypeReference
typedReqMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, this.DefaultName + "Request", this.Request, false /*isReply*/, hideFromEditor, ref this.IsNewRequest, out this.BeginPartCodeGenerator);
291
CodeTypeReference
typedRespMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, this.DefaultName + "Response", this.Response, true /*isReply*/, hideFromEditor, ref this.IsNewResponse, out this.EndPartCodeGenerator);
301
CodeTypeReference
GenerateTypedMessageHeaderAndReturnValueParts(CodeNamespace ns, string defaultName, MessageDescription message, bool isReply, bool hideFromEditor, ref bool isNewMessage, out IPartCodeGenerator partCodeGenerator)
303
CodeTypeReference
typedMessageRef;
403
CodeAttributeDeclarationCollection AddPart(
CodeTypeReference
type, ref string name);
421
internal CodeParameterDeclarationExpression GetOrCreateParameter(
CodeTypeReference
type, string name, FieldDirection direction, ref int index, out bool createdNew)
494
CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(
CodeTypeReference
type, ref string name)
564
CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(
CodeTypeReference
type, ref string name)
593
CodeTypeReference
wrapperTypeRef = namespaceScope.AddUnique(wrapperTypeDecl, typeName + "Body", "Body");
616
List<
CodeTypeReference
> wrapperKnownTypes = new List<
CodeTypeReference
>();
624
ICollection<
CodeTypeReference
> knownTypesForPart = null;
627
foreach (
CodeTypeReference
typeReference in knownTypesForPart)
690
CodeTypeReference
type;
715
CodeTypeReference
partType = GetParameterType(messagePart);
735
CodeTypeReference
partType = GetParameterType(setting);
741
CodeTypeReference
GetParameterType(MessagePartDescription setting)
804
internal static void AddGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message,
CodeTypeReference
codeTypeReference)
812
internal static bool FindGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message, out
CodeTypeReference
codeTypeReference)
961
CodeTypeReference
resultType = this.Method.ReturnType;
962
CodeTypeReference
taskReturnType;
System\ServiceModel\Description\ServiceContractGenerationContext.cs (8)
23
CodeTypeReference
channelTypeReference;
25
CodeTypeReference
clientTypeReference;
26
CodeTypeReference
contractTypeReference;
27
CodeTypeReference
duplexCallbackTypeReference;
57
internal
CodeTypeReference
ChannelTypeReference
69
internal
CodeTypeReference
ClientTypeReference
85
internal
CodeTypeReference
ContractTypeReference
96
internal
CodeTypeReference
DuplexCallbackTypeReference
System\ServiceModel\Description\ServiceContractGenerator.cs (16)
35
Dictionary<MessageDescription,
CodeTypeReference
> generatedTypedMessages;
68
internal
CodeTypeReference
GetCodeTypeReference(Type type)
138
public
CodeTypeReference
GenerateServiceEndpoint(ServiceEndpoint endpoint, out ChannelEndpointElement channelElement)
146
CodeTypeReference
retVal;
164
public
CodeTypeReference
GenerateServiceContractType(ContractDescription contractDescription)
166
CodeTypeReference
retVal = GenerateServiceContractTypeInternal(contractDescription);
171
CodeTypeReference
GenerateServiceContractTypeInternal(ContractDescription contractDescription)
238
internal Dictionary<MessageDescription,
CodeTypeReference
> GeneratedTypedMessages
243
generatedTypedMessages = new Dictionary<MessageDescription,
CodeTypeReference
>(MessageDescriptionComparer.Singleton);
303
CodeTypeReference
contractReference = codeNamespaceScope.AddUnique(contract, contractDescription.CodeName, Strings.DefaultContractName);
306
CodeTypeReference
callbackContractReference = null;
643
static
CodeTypeReference
voidTypeReference = new CodeTypeReference(typeof(void));
658
CodeTypeReference
exceptionTypeReference = fault.DetailType != null ? context.Contract.ServiceContractGenerator.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference;
812
public static CodeTypeDeclaration GetCodeType(
CodeTypeReference
codeTypeReference)
817
static internal
CodeTypeReference
GetCodeTypeReference(CodeNamespace codeNamespace, CodeTypeDeclaration codeType)
819
CodeTypeReference
codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
137
public
CodeTypeReference
AddUnique(CodeTypeDeclaration codeType, string name, string defaultName)
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
144
operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<
CodeTypeReference
>>());
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
174
CodeTypeReference
typeRef = new CodeTypeReference(activityNamespace + "." + activityName);
System.Web (12)
Compilation\BaseCodeDomTreeGenerator.cs (1)
332
CodeTypeReference
classTypeRef = CodeDomUtility.BuildGlobalCodeTypeReference(fullClassName);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (3)
265
CodeTypeReference
ctrlTypeRef = CodeDomUtility.BuildGlobalCodeTypeReference(ctrlType);
635
CodeTypeReference
ctrlTypeReference =
803
CodeTypeReference
ctrlTypeReference =
Compilation\CodeDOMUtility.cs (4)
358
internal static
CodeTypeReference
BuildGlobalCodeTypeReference(string typeName) {
362
internal static
CodeTypeReference
BuildGlobalCodeTypeReference(Type type) {
369
CodeTypeReference
codeTypeReference = BuildGlobalCodeTypeReference(typeName);
377
CodeTypeReference
codeTypeReference = BuildGlobalCodeTypeReference(type);
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
28
private
CodeTypeReference
_controlSkinDelegateType = new CodeTypeReference(typeof(ControlSkinDelegate));
29
private
CodeTypeReference
_controlSkinType = new CodeTypeReference(typeof(ControlSkin));
Compilation\TemplateControlCodeDomTreeGenerator.cs (1)
71
CodeTypeReference
classTypeRef = CodeDomUtility.BuildGlobalCodeTypeReference(Parser.BaseType);
Profile\HttpProfileBase.cs (1)
669
internal
CodeTypeReference
PropertyCodeRefType;
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
651
CodeTypeReference
typeReference = contractGenerator.GenerateServiceContractType(contract);
System.Workflow.Activities (25)
Common\CompModHelpers.cs (3)
695
internal static bool TypesEqual(
CodeTypeReference
typeLeft, Type typeRight)
707
internal static bool TypesEqual(
CodeTypeReference
typeLeft,
CodeTypeReference
typeRight)
Common\DelegateTypeInfo.cs (2)
31
private
CodeTypeReference
returnType;
49
internal
CodeTypeReference
ReturnType
Rules\CodeDomDecompiler.cs (2)
234
internal static void DecompileType(StringBuilder decompilation,
CodeTypeReference
typeRef)
245
foreach (
CodeTypeReference
argTypeRef in typeRef.TypeArguments)
Rules\Expressions.cs (9)
1693
foreach (
CodeTypeReference
typeReference in oldReference.TypeArguments)
1935
static internal
CodeTypeReference
CloneType(
CodeTypeReference
oldType)
1940
CodeTypeReference
newType = new CodeTypeReference();
1944
foreach (
CodeTypeReference
typeReference in oldType.TypeArguments)
1959
static internal bool MatchType(
CodeTypeReference
typeRef1,
CodeTypeReference
typeRef2)
1968
CodeTypeReference
trArg1 = typeRef1.TypeArguments[i];
1969
CodeTypeReference
trArg2 = typeRef2.TypeArguments[i];
Rules\Parser\Parser.cs (3)
1361
CodeTypeReference
typeRef = new CodeTypeReference(type);
1804
CodeTypeReference
typeRef = new CodeTypeReference(type);
2216
CodeTypeReference
typeRef = new CodeTypeReference(type);
Rules\RuleValidation.cs (6)
921
private Dictionary<
CodeTypeReference
, Type> typeRefMap = new Dictionary<
CodeTypeReference
, Type>();
3687
internal void AddTypeReference(
CodeTypeReference
typeRef, Type type)
3692
internal Type ResolveType(
CodeTypeReference
typeRef)
3729
CodeTypeReference
arg = typeRef.TypeArguments[i];
3761
CodeTypeReference
arrayTypeRef = typeRef;
System.Workflow.ComponentModel (21)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (6)
183
foreach (
CodeTypeReference
codeBaseType in codeDomType.BaseTypes)
234
CodeTypeReference
reference = declaration.BaseTypes[1]; //the first one would be Enum
506
foreach (
CodeTypeReference
codeBaseType in codeDomType.BaseTypes)
537
foreach (
CodeTypeReference
codeBaseType in codeDomType.BaseTypes)
914
internal static string GetTypeNameFromCodeTypeReference(
CodeTypeReference
codeTypeReference, DesignTimeType declaringType)
933
foreach (
CodeTypeReference
typeArgument in codeTypeReference.TypeArguments)
AuthoringOM\Compiler\TypeSystem\ParameterInfo.cs (2)
17
private
CodeTypeReference
codeParameterType;
30
internal DesignTimeParameterInfo(
CodeTypeReference
codeParameterType, MemberInfo member)
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (7)
21
return (value is
CodeTypeReference
);
31
CodeTypeReference
reference = value as
CodeTypeReference
;
77
if (!propertyType.IsAssignableFrom(typeof(
CodeTypeReference
)))
87
CodeTypeReference
result;
109
private static string ConvertTypeReferenceToString(
CodeTypeReference
reference)
133
foreach (
CodeTypeReference
nested in reference.TypeArguments)
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
502
else if (objectType == typeof(
CodeTypeReference
))
Shared\CompModHelpers.cs (3)
693
internal static bool TypesEqual(
CodeTypeReference
typeLeft, Type typeRight)
705
internal static bool TypesEqual(
CodeTypeReference
typeLeft,
CodeTypeReference
typeRight)
Shared\DelegateTypeInfo.cs (2)
30
private
CodeTypeReference
returnType;
48
internal
CodeTypeReference
ReturnType
XamlBuildTask (6)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (6)
351
CodeTypeReference
fieldCodeType = null;
834
CodeTypeReference
ifaceType = new CodeTypeReference(typeof(ISupportInitialize));
897
CodeTypeReference
propertyCodeType = null;
958
bool GetCodeTypeReferenceFromXamlType(XamlType xamlType, ClassData classData, out
CodeTypeReference
codeTypeReference)
977
bool GetTypeArgumentFromXamlType(
CodeTypeReference
codeTypeReference, XamlType xamlType, ClassData classData)
987
CodeTypeReference
argumentCodeTypeReference = null;