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