116 instantiations of CodeObjectCreateExpression
PresentationBuildTasks (6)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (6)
991new CodeObjectCreateExpression(KnownTypes.Types[(int)KnownElements.EventSetter], 1818CodeObjectCreateExpression coce = new CodeObjectCreateExpression(desc.MemberInfo.DeclaringType.FullName); 1894CodeObjectCreateExpression coce = new CodeObjectCreateExpression(eventHandlerType, delParams); 2603CodeObjectCreateExpression coceResourceLocator = new CodeObjectCreateExpression(typeof(System.Uri), uriParams); 3046coce = new CodeObjectCreateExpression(appClassName, ctorParams); 3204CodeObjectCreateExpression coceApplicationSplashScreen = new CodeObjectCreateExpression(SPLASHCLASSNAME, new CodePrimitiveExpression(GetSplashResourceId()));
System.Activities (6)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
558new CodeObjectCreateExpression(typeof(InvalidOperationException), new CodePrimitiveExpression(SR.CompiledExpressionsDuplicateName(name)))); 771new CodeObjectCreateExpression( 839new CodeObjectCreateExpression(new CodeTypeReference(typeof(List<string>)))); 905new CodeObjectCreateExpression(new CodeTypeReference(descriptor.TypeName), new CodeExpression[] { new CodeVariableReferenceExpression("locationReferences") }), 1357return new CodeObjectCreateExpression( 1365return new CodeObjectCreateExpression(
System.Data (2)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
1444private static CodeExpression New(string type, CodeExpression[] parameters) { return new CodeObjectCreateExpression(type, parameters);} 1447private static CodeExpression New(Type type, CodeExpression[] parameters) { return new CodeObjectCreateExpression(type, parameters);}
System.Data.Entity.Design (11)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (3)
533new CodeObjectCreateExpression(new CodeTypeReference(typeof(IndexOutOfRangeException))))); 570new CodeObjectCreateExpression( 583CodeObjectCreateExpression viewStringConstruct = new CodeObjectCreateExpression(typeof(StringBuilder), new CodePrimitiveExpression(capacity));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
592new CodeObjectCreateExpression(TypeReference.ForType(typeof(ObjectParameter)), 596new CodeObjectCreateExpression(TypeReference.ForType(typeof(ObjectParameter)),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (5)
762return new CodeObjectCreateExpression(TypeReference.Guid, 771return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified)); 778return new CodeObjectCreateExpression(TypeReference.DateTimeOffset, new CodePrimitiveExpression(dateTimeOffset.Ticks), 779new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(dateTimeOffset.Offset.Ticks))); 785return new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(timeSpan.Ticks));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
190typeRef, instanceName, new CodeObjectCreateExpression(typeRef));
System.Data.Services.Design (8)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
801new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ComponentModel.PropertyChangedEventArgs), CodeTypeReferenceOptions.GlobalReference), new CodeArgumentReferenceExpression("property"))
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
73memberField.InitExpression = new CodeObjectCreateExpression( 82memberField.InitExpression = new CodeObjectCreateExpression(fieldType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
263new CodeObjectCreateExpression(PropertyType) 693return new CodeObjectCreateExpression(TypeReference.Guid, 705return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
181typeRef, instanceName, new CodeObjectCreateExpression(typeRef)); 213new CodeObjectCreateExpression(
System.Management (48)
WmiGenerator.cs (48)
1104coce = new CodeObjectCreateExpression(); 2168coce = new CodeObjectCreateExpression(); 2231coce = new CodeObjectCreateExpression(); 2292coce = new CodeObjectCreateExpression(); 2414coce = new CodeObjectCreateExpression(); 2451coce = new CodeObjectCreateExpression(); 2491coce = new CodeObjectCreateExpression(); 2599coce = new CodeObjectCreateExpression(); 2606coce = new CodeObjectCreateExpression(); 2667coce = new CodeObjectCreateExpression(); 2677coce = new CodeObjectCreateExpression(); 2751coce = new CodeObjectCreateExpression(); 2759coce = new CodeObjectCreateExpression(); 2767coce = new CodeObjectCreateExpression(); 2912CodeObjectCreateExpression cocePath = new CodeObjectCreateExpression(); 2917CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 2923coce = new CodeObjectCreateExpression(); 3166coce = new CodeObjectCreateExpression(); 3273coce = new CodeObjectCreateExpression(); 3500coce = new CodeObjectCreateExpression(); 3517coce = new CodeObjectCreateExpression(); 3531coce = new CodeObjectCreateExpression(); 3547coce = new CodeObjectCreateExpression(); 3559coce = new CodeObjectCreateExpression(); 3681coce = new CodeObjectCreateExpression(); 3696CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 3702coce = new CodeObjectCreateExpression(); 3710coce = new CodeObjectCreateExpression(); 3729coce = new CodeObjectCreateExpression(); 4448coce = new CodeObjectCreateExpression(); 4470coce = new CodeObjectCreateExpression(); 4562coce = new CodeObjectCreateExpression(); 5550coce = new CodeObjectCreateExpression(); 6003coce = new CodeObjectCreateExpression(); 6023coce = new CodeObjectCreateExpression(); 6323coce = new CodeObjectCreateExpression(); 6339CodeObjectCreateExpression cocePath = new CodeObjectCreateExpression(); 6344CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 6357coce = new CodeObjectCreateExpression(); 6496CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 6682CodeObjectCreateExpression codeThrowExceptionWithArgs = new CodeObjectCreateExpression(); 6708coce = new CodeObjectCreateExpression(); 6927CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 7052coce = new CodeObjectCreateExpression(); 7346coce = new CodeObjectCreateExpression(); 7512CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 7713CodeObjectCreateExpression codeThrowExceptionWithArgs = new CodeObjectCreateExpression(); 7740coce = new CodeObjectCreateExpression();
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeExporter.cs (2)
1293typeNameField.InitExpression = new CodeObjectCreateExpression(Globals.TypeOfXmlQualifiedName, new CodePrimitiveExpression(typeName.Name), new CodePrimitiveExpression(typeName.Namespace)); 1914ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, ThisReference, new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
System.ServiceModel (5)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
39newValue = new CodeObjectCreateExpression(
System\ServiceModel\Description\ClientClassGenerator.cs (4)
276helperMethod.Statements.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type))); 325helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type))); 803newEventArgsExpr = new CodeObjectCreateExpression(operationCompletedEventArgsType.Name, 811newEventArgsExpr = new CodeObjectCreateExpression(asyncCompletedEventArgsType,
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
175CodeObjectCreateExpression expr = new CodeObjectCreateExpression(typeRef, new CodeArgumentReferenceExpression(ActivityParameterName));
System.Web (17)
Compilation\BaseCodeDomTreeGenerator.cs (1)
722propertyInitExpression = new CodeObjectCreateExpression(obj.ObjectType);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (6)
267newExpr = new CodeObjectCreateExpression(ctrlTypeRef); 374newExpr = new CodeObjectCreateExpression(typeof(CompiledBindableTemplateBuilder)); 382newExpr = new CodeObjectCreateExpression(typeof(CompiledTemplateBuilder)); 563CodeObjectCreateExpression cocExpr = new CodeObjectCreateExpression(typeof(CompiledTemplateBuilder)); 708newExpr = new CodeObjectCreateExpression(typeof(LiteralControl)); 1002CodeObjectCreateExpression newTableExpression = new CodeObjectCreateExpression(typeof(OrderedDictionary));
Compilation\CodeDOMUtility.cs (1)
149CodeObjectCreateExpression objectCreate = new CodeObjectCreateExpression(desc.MemberInfo.DeclaringType.FullName);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (3)
131var newObjectExpr = new CodeObjectCreateExpression(typeToCreate); 135var throwExceptionStatement = new CodeThrowExceptionStatement(new CodeObjectCreateExpression( 144var newObjectExpression = new CodeObjectCreateExpression(typeToCreate);
Compilation\PageCodeDomTreeGenerator.cs (1)
202CodeObjectCreateExpression cacheSettingsObject = new CodeObjectCreateExpression();
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
95CodeObjectCreateExpression valueExpr = new CodeObjectCreateExpression(_controlSkinType); 108CodeObjectCreateExpression expr = new CodeObjectCreateExpression(typeof(HybridDictionary));
Configuration\BrowserCapabilitiesCodeGenerator.cs (3)
918cas.Right = new CodeObjectCreateExpression(typeof(Triplet), 938cas.Right = new CodeObjectCreateExpression(typeof(Triplet), 1130cmm.Statements.Add(new CodeAssignStatement(_regexWorkerRefExpr, new CodeObjectCreateExpression("RegexWorker", _browserCapsRefExpr)));
System.Web.Services (1)
System\Web\Services\Description\WebCodeGenerator.cs (1)
297CodeObjectCreateExpression create = new CodeObjectCreateExpression();
System.Workflow.Activities (2)
Rules\Expressions.cs (1)
3178CodeObjectCreateExpression newCreate = new CodeObjectCreateExpression();
Rules\Parser\Parser.cs (1)
1952CodeExpression postfixExpr = new CodeObjectCreateExpression(type, arguments.ToArray());
System.Workflow.ComponentModel (2)
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (1)
107varDecl.InitExpression = new CodeObjectCreateExpression(TypeDescriptor.GetClassName(value), new CodeExpression[0]);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
38statements.Add(new CodeVariableDeclarationStatement(obj.GetType(), variableName, new CodeObjectCreateExpression(obj.GetType())));
System.Xml (3)
System\Xml\Serialization\CodeExporter.cs (1)
361ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, new CodeThisReferenceExpression(), new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
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});
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
818new CodeObjectCreateExpression()
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
37return new CodeObjectCreateExpression(type, parameters);
64 references to CodeObjectCreateExpression
PresentationBuildTasks (5)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (5)
1818CodeObjectCreateExpression coce = new CodeObjectCreateExpression(desc.MemberInfo.DeclaringType.FullName); 1894CodeObjectCreateExpression coce = new CodeObjectCreateExpression(eventHandlerType, delParams); 2603CodeObjectCreateExpression coceResourceLocator = new CodeObjectCreateExpression(typeof(System.Uri), uriParams); 3042CodeObjectCreateExpression coce; 3204CodeObjectCreateExpression coceApplicationSplashScreen = new CodeObjectCreateExpression(SPLASHCLASSNAME, new CodePrimitiveExpression(GetSplashResourceId()));
System (12)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
1175private void GenerateObjectCreateExpression(CodeObjectCreateExpression e) { 1705else if (e is CodeObjectCreateExpression) { 1706GenerateObjectCreateExpression((CodeObjectCreateExpression)e);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1408protected override void GenerateObjectCreateExpression(CodeObjectCreateExpression e) {
compmod\system\codedom\CodeObjectCreateExpression.cs (2)
33/// Initializes a new <see cref='System.CodeDom.CodeObjectCreateExpression'/>. 41/// Initializes a new <see cref='System.CodeDom.CodeObjectCreateExpression'/> using the specified type and
compmod\system\codedom\compiler\CodeGenerator.cs (3)
647else if (e is CodeObjectCreateExpression) { 648GenerateObjectCreateExpression((CodeObjectCreateExpression)e); 1465protected abstract void GenerateObjectCreateExpression(CodeObjectCreateExpression e);
compmod\system\codedom\compiler\CodeValidator.cs (3)
633else if (e is CodeObjectCreateExpression) { 634ValidateObjectCreateExpression((CodeObjectCreateExpression)e); 765private void ValidateObjectCreateExpression(CodeObjectCreateExpression e) {
System.Activities (2)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
1060CodeObjectCreateExpression dataContext = GenerateDataContextCreateExpression(descriptor.TypeName, withLocationReferences); 1353CodeObjectCreateExpression GenerateDataContextCreateExpression(string typeName, bool withLocationReferences)
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
569CodeObjectCreateExpression newExpression = 583CodeObjectCreateExpression viewStringConstruct = new CodeObjectCreateExpression(typeof(StringBuilder), new CodePrimitiveExpression(capacity));
System.Management (11)
WmiGenerator.cs (11)
80private CodeObjectCreateExpression coce; 2912CodeObjectCreateExpression cocePath = new CodeObjectCreateExpression(); 2917CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 3696CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 6339CodeObjectCreateExpression cocePath = new CodeObjectCreateExpression(); 6344CodeObjectCreateExpression coce1 = new CodeObjectCreateExpression(); 6496CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 6682CodeObjectCreateExpression codeThrowExceptionWithArgs = new CodeObjectCreateExpression(); 6927CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 7512CodeObjectCreateExpression codeThrowException = new CodeObjectCreateExpression(); 7713CodeObjectCreateExpression codeThrowExceptionWithArgs = new CodeObjectCreateExpression();
System.ServiceModel (1)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
799CodeObjectCreateExpression newEventArgsExpr;
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
175CodeObjectCreateExpression expr = new CodeObjectCreateExpression(typeRef, new CodeArgumentReferenceExpression(ActivityParameterName));
System.Web (9)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (3)
248CodeObjectCreateExpression newExpr; 563CodeObjectCreateExpression cocExpr = new CodeObjectCreateExpression(typeof(CompiledTemplateBuilder)); 1002CodeObjectCreateExpression newTableExpression = new CodeObjectCreateExpression(typeof(OrderedDictionary));
Compilation\CodeDOMUtility.cs (1)
149CodeObjectCreateExpression objectCreate = new CodeObjectCreateExpression(desc.MemberInfo.DeclaringType.FullName);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (2)
131var newObjectExpr = new CodeObjectCreateExpression(typeToCreate); 144var newObjectExpression = new CodeObjectCreateExpression(typeToCreate);
Compilation\PageCodeDomTreeGenerator.cs (1)
202CodeObjectCreateExpression cacheSettingsObject = new CodeObjectCreateExpression();
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
95CodeObjectCreateExpression valueExpr = new CodeObjectCreateExpression(_controlSkinType); 108CodeObjectCreateExpression expr = new CodeObjectCreateExpression(typeof(HybridDictionary));
System.Web.Services (1)
System\Web\Services\Description\WebCodeGenerator.cs (1)
297CodeObjectCreateExpression create = new CodeObjectCreateExpression();
System.Workflow.Activities (19)
Rules\CodeDomDecompiler.cs (1)
418map.Add(typeof(CodeObjectCreateExpression), GetPostfixPrecedence);
Rules\Expressions.cs (17)
2916CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 2920message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeObjectCreateExpression).ToString()); 3010CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 3021CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 3141CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 3176CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 3178CodeObjectCreateExpression newCreate = new CodeObjectCreateExpression(); 3189CodeObjectCreateExpression createExpression = (CodeObjectCreateExpression)expression; 3191CodeObjectCreateExpression createComperand = comperand as CodeObjectCreateExpression; 3220message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(CodeObjectCreateExpression).ToString());
Rules\Walker.cs (1)
86new TypeWrapperTuple(typeof(CodeObjectCreateExpression), new ObjectCreateExpression()),
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
35internal static CodeObjectCreateExpression New(this Type type, params CodeExpression[] parameters)