290 references to CodeTypeReference
Microsoft.Build.Tasks.Core (3)
system.design\stronglytypedresourcebuilder.cs (2)
489var getAssembly = new CodePropertyReferenceExpression(new CodeTypeOfExpression(new CodeTypeReference(srClass.Name)), "Assembly"); 592valueType = new CodeTypeReference(data.TypeFullName);
WriteCodeFragment.cs (1)
277var attribute = new CodeAttributeDeclaration(new CodeTypeReference(attributeItem.ItemSpec));
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
2208new CodeTypeReference("System.Diagnostics.CodeAnalysis.SuppressMessageAttribute"), 2278_ccRoot.CodeClass.BaseTypes[0].TypeArguments.Add(new CodeTypeReference(_typeArgsList[i])); 2318ctrConstructedType = new CodeTypeReference(genericName); 2322ctrConstructedType = new CodeTypeReference(t.FullName); 2347ctrConstructedType = new CodeTypeReference(genericName); 2386ctrTypeArg = new CodeTypeReference(currTypeArg); 2412ctrConstructedType = new CodeTypeReference(t.FullName); 2532ElementTypeReference = new CodeTypeReference(GetFullClassName(ns, className)) 2742ctdClass.BaseTypes.Add(new CodeTypeReference("System.Windows.Markup.InternalTypeHelper"));
System.CodeDom (32)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (4)
219typeArgumentList.Add(new CodeTypeReference(name)); 273public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeName) 283this(typeParameter?.Name) 293ArrayElementType = new CodeTypeReference(baseType);
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReferenceCollection.cs (1)
38public void Add(string value) => Add(new CodeTypeReference(value));
System\CodeDom\CodeArrayCreateExpression.cs (4)
23_createType = new CodeTypeReference(createType); 41_createType = new CodeTypeReference(createType); 59_createType = new CodeTypeReference(createType); 71get => _createType ??= new CodeTypeReference("");
System\CodeDom\CodeAttributeDeclaration.cs (1)
47_attributeType = new CodeTypeReference(_name);
System\CodeDom\CodeCastExpression.cs (2)
18TargetType = new CodeTypeReference(targetType); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeDefaultValueExpression.cs (1)
19get => _type ??= new CodeTypeReference("");
System\CodeDom\CodeDelegateCreateExpression.cs (1)
22get => _delegateType ??= new CodeTypeReference("");
System\CodeDom\CodeMemberEvent.cs (1)
12get => field ??= new CodeTypeReference("");
System\CodeDom\CodeMemberField.cs (2)
18Type = new CodeTypeReference(type); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeMemberMethod.cs (1)
23get => field ??= new CodeTypeReference(typeof(void).FullName);
System\CodeDom\CodeMemberProperty.cs (1)
17get => field ??= new CodeTypeReference("");
System\CodeDom\CodeObjectCreateExpression.cs (2)
18CreateType = new CodeTypeReference(createType); 30get => field ??= new CodeTypeReference("");
System\CodeDom\CodeParameterDeclarationExpression.cs (2)
18Type = new CodeTypeReference(type); 38get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeDelegate.cs (2)
15BaseTypes.Add(new CodeTypeReference("System.Delegate")); 25get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeOfExpression.cs (2)
17Type = new CodeTypeReference(type); 27get => field ??= new CodeTypeReference("");
System\CodeDom\CodeTypeReferenceExpression.cs (2)
17Type = new CodeTypeReference(type); 27get => field ??= new CodeTypeReference("");
System\CodeDom\CodeVariableDeclarationStatement.cs (3)
18Type = new CodeTypeReference(type); 37Type = new CodeTypeReference(type); 59get => field ??= new CodeTypeReference("");
System.Management (242)
System\Management\WMIGenerator.cs (242)
243cc.BaseTypes.Add(new CodeTypeReference(PrivateNamesUsed["ComponentClass"].ToString())); 934cmp.Type = new CodeTypeReference(propType); 971cmp.Type = new CodeTypeReference(propType); 1015cmp.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 1064coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 1095cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1158cf.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1205if ((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) || 1206cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 1217cmp2.Type = new CodeTypeReference("System.Boolean"); 1385cmm.ReturnType = new CodeTypeReference("System.Boolean"); 1502new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"), 1510new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"), 1824cmp.Type = new CodeTypeReference(strEnum); 1928cmp.Type = new CodeTypeReference(strEnum); 2039cmm.ReturnType = new CodeTypeReference("System.String"); 2077cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "), new CodeVariableReferenceExpression("key" + arrKeys[i])); 2117coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2152cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2159if (cctor.Parameters.Count == 1 && cctor.Parameters[0].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2162cpde.Type = new CodeTypeReference("System.Object"); 2180coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2200cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2211cpde.Type = new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType); 2218if (cctor.Parameters.Count == 2 && cctor.Parameters[1].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2221cpde.Type = new CodeTypeReference("System.Object"); 2228new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2241coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2266cpde.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2297cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2298cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2325cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2326cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2350cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2363coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2387cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2400coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2422cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2424cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2440coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2483cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2484cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2485cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2520cpde.Type = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2548coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2555coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2590cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 2615coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2625coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2670cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2671cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2672cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2699coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2707coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2715coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2852cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), 2860cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2862cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 2865coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2871coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2873cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), strClassObj, coce1)); 2975cis.TrueStatements.Add(new CodeAssignStatement(cie, new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "), 3013cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strOutParams, cmie)); 3113coce.CreateType = new CodeTypeReference("System.TimeSpan"); 3192if (retRefType.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 3220coce.CreateType = new CodeTypeReference("System.TimeSpan"); 3236if (retRefType.ArrayRank == 0 && retRefType.BaseType != new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 3282cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3312cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3343cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3374cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3421cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3422cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3423cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3446coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3463coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 3465cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), pathObj, coce)); 3477coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 3482cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), 3493coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3505coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3532cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3533cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3534cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), strCondition)); 3563cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3604cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3606cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3626coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3641coce1.CreateType = new CodeTypeReference(PublicNamesUsed["QueryClass"].ToString()); 3647coce.CreateType = new CodeTypeReference(PublicNamesUsed["ObjectSearcherClass"].ToString()); 3655coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3658new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3674coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString()); 3706cf.Type = new CodeTypeReference(MemberType); 3754cf.Type = new CodeTypeReference(PublicNamesUsed["TypeConverter"].ToString()); 3761cf.Type = new CodeTypeReference(PublicNamesUsed["Type"].ToString()); 3776cpde.Type = new CodeTypeReference("System.Type"); 3800cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3824cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3848cmm.ReturnType = new CodeTypeReference("System.Object"); 3852cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 3873cmm.ReturnType = new CodeTypeReference("System.Object"); 3897cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3918cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 3920CodeTypeReference crt = new CodeTypeReference(new CodeTypeReference("System.Attribute"), 1); 3922cmm.ReturnType = new CodeTypeReference(propColl); 3943cmm.ReturnType = new CodeTypeReference("System.Boolean"); 3962cmm.ReturnType = new CodeTypeReference("System.ComponentModel.TypeConverter.StandardValuesCollection"); 3981cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4000cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4050cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"), ValueVar)); 4052cmm.ReturnType = new CodeTypeReference("System.Object"); 4255cf.Type = new CodeTypeReference(strManagementObjectCollectionType); 4267cpde.Type = new CodeTypeReference(strManagementObjectCollectionType); 4298cmp.Type = new CodeTypeReference("System.Int32"); 4315cmp.Type = new CodeTypeReference("System.Boolean"); 4331cmp.Type = new CodeTypeReference("System.Object"); 4358cpde.Type = new CodeTypeReference("System.Array"); 4363cpde.Type = new CodeTypeReference("System.Int32"); 4400coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4401coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), cmie1)); 4419cmm.ReturnType = new CodeTypeReference("System.Collections.IEnumerator"); 4421coce.CreateType = new CodeTypeReference(PrivateNamesUsed["EnumeratorClass"].ToString()); 4452cf.Type = new CodeTypeReference(strManagementObjectCollectionType + "." + 4465cpde.Type = new CodeTypeReference(strManagementObjectCollectionType + "." + 4496cmp.Type = new CodeTypeReference("System.Object"); 4501coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 4502coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), 4518cmm.ReturnType = new CodeTypeReference("System.Boolean"); 4687return new CodeTypeReference(strType); 5004cpde.Type = new CodeTypeReference(PublicNamesUsed["PutOptions"].ToString()); 5354cmp.Type = new CodeTypeReference("System.String"); 5394new CodeCastExpression(new CodeTypeReference("System.String"), 5440cmm.ReturnType = new CodeTypeReference("System.Boolean"); 5442cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 5443cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathParam)); 5444cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 5483coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 5512cmm.ReturnType = new CodeTypeReference("System.Boolean"); 5514cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strTempObj)); 5518new CodeCastExpression(new CodeTypeReference("System.String"), 5552CodeExpression cs = new CodeCastExpression(new CodeTypeReference("System.Array"), 5588new CodeCastExpression(new CodeTypeReference("System.String"), cmie1), 5667ce = new CodeCastExpression(new CodeTypeReference("System.String"), new CodePropertyReferenceExpression(prop, "Value")); 5671ce = new CodeCastExpression(new CodeTypeReference("System.String"), prop); 5706new CodeTypeReference("System.Array"), 5716new CodeTypeReference("System.Array"), 5724new CodeTypeReference("System.Int32"), 5731new CodeTypeReference(strType), 5739new CodeTypeReference(strType), 5748new CodeTypeReference("System.Int32"), 5773cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), new CodePropertyReferenceExpression(prop, "Value")); 5777cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), prop); 5835new CodeTypeReference("System.Array"), 5843new CodeTypeReference("System.Int32"), 5850new CodeTypeReference(new CodeTypeReference("System.String"), 1); 5857new CodeTypeReference("System.String"), 5866new CodeTypeReference("System.Int32"), 5890cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), varValue); 5929coce.CreateType = new CodeTypeReference("System.TimeSpan"); 5947coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 5967cmie1.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.DateTime"), beginningExpression)); 5974cmie2.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.TimeSpan"), beginningExpression)); 5980new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), 5994cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6055new CodeCastExpression(new CodeTypeReference("System.Array"), ciProp))); 6058new CodeArrayCreateExpression(new CodeTypeReference(strEnumName), 6089new CodeCastExpression(new CodeTypeReference(strEnumName), cmie2))); 6156codeType = new CodeTypeReference("System.DateTime"); 6170codeType = new CodeTypeReference("System.TimeSpan"); 6219cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6232cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 6244coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6260cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 6262cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 6265coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 6278coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString()); 6361cmmdt.ReturnType = new CodeTypeReference("System.DateTime"); 6362cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), dmtfParam)); 6367cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), "initializer", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"), "MinValue"))); 6370cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), year, new CodePropertyReferenceExpression(cvreInitializer, "Year"))); 6373cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), month, new CodePropertyReferenceExpression(cvreInitializer, "Month"))); 6376cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), day, new CodePropertyReferenceExpression(cvreInitializer, "Day"))); 6379cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hour, new CodePropertyReferenceExpression(cvreInitializer, "Hour"))); 6382cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minute, new CodePropertyReferenceExpression(cvreInitializer, "Minute"))); 6385cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), second, new CodePropertyReferenceExpression(cvreInitializer, "Second"))); 6388cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0))); 6391cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtf, new CodeVariableReferenceExpression(dmtfParam))); 6395cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), datetimeVariable, cpreMinVal)); 6398cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), tempStr, new CodeFieldReferenceExpression( 6410codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6596codeThrowExceptionWithArgs.CreateType = new CodeTypeReference 6622coce.CreateType = new CodeTypeReference("System.DateTime"); 6653cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tickoffset, cmie1)); 6662cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), utcOffset, new CodePrimitiveExpression(0))); 6664cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), offsetAdjust, new CodePrimitiveExpression(0))); 6674new CodeTypeReference("System.Int64"), 6742cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust), new CodeCastExpression(new CodeTypeReference("System.Int32"), cboe))); 6805cmmts.ReturnType = new CodeTypeReference("System.String"); 6806cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.TimeSpan"), timespan)); 6821new CodeTypeReference("System.Int32 "), 6834new CodeTypeReference("System.String"), 6842new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6852cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "maxTimeSpan", cpreMaxVal)); 6882cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "minTimeSpan", cpreMinVal)); 6910cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6927cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6944cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), cpre1), "ToString"); 6966coce.CreateType = new CodeTypeReference("System.TimeSpan"); 6972cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, coce)); 6997new CodeTypeReference("System.Int64"), 7007cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), new CodeVariableReferenceExpression(microsec)), "ToString"); 7008cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie)); 7067cmmdt.ReturnType = new CodeTypeReference("System.String"); 7068cmmdt.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.DateTime"), dateParam)); 7074cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strUtc, 7096new CodeTypeReference("System.TimeSpan"), 7110new CodeTypeReference("System.Int64"), 7163cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), cboe2), "ToString"); 7181cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), new CodeVariableReferenceExpression(OffsetMins)), "ToString"); 7182cis2.FalseStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), "strTemp", cmie1)); 7208cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), 7218cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtfDateTime, cmie2)); 7260coce.CreateType = new CodeTypeReference("System.DateTime"); 7268cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), dtTemp, coce)); 7292new CodeTypeReference("System.Int64"), 7302cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), 7304cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie1)); 7362cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference(strType), 7389cmmts.ReturnType = new CodeTypeReference("System.TimeSpan"); 7390cmmts.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"), tsParam)); 7395cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), days, new CodePrimitiveExpression(0))); 7397cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hours, new CodePrimitiveExpression(0))); 7399cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minutes, new CodePrimitiveExpression(0))); 7401cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), seconds, new CodePrimitiveExpression(0))); 7403cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0))); 7421codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 7493tryblock.TryStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strTemp, 7622codeThrowExceptionWithArgs.CreateType = new CodeTypeReference 7649coce.CreateType = new CodeTypeReference("System.TimeSpan"); 7656cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), timespan, coce)); 7667cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, cmie));
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
458contractCodeDomInfo.TypeReference = new CodeTypeReference((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName); 514contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName);
System.Windows.Forms.Design (2)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
594new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)), 603new CodeTypeOfExpression(new CodeTypeReference(classDeclaration.Name)),