31 references to CodeObjectCreateExpression
System.Activities (5)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (5)
771
new
CodeObjectCreateExpression
(
839
new
CodeObjectCreateExpression
(new CodeTypeReference(typeof(List<string>))));
905
new
CodeObjectCreateExpression
(new CodeTypeReference(descriptor.TypeName), new CodeExpression[] { new CodeVariableReferenceExpression("locationReferences") }),
1357
return new
CodeObjectCreateExpression
(
1365
return new
CodeObjectCreateExpression
(
System.Data.Entity.Design (10)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
533
new
CodeObjectCreateExpression
(new CodeTypeReference(typeof(IndexOutOfRangeException)))));
570
new
CodeObjectCreateExpression
(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
592
new
CodeObjectCreateExpression
(TypeReference.ForType(typeof(ObjectParameter)),
596
new
CodeObjectCreateExpression
(TypeReference.ForType(typeof(ObjectParameter)),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (5)
762
return new
CodeObjectCreateExpression
(TypeReference.Guid,
771
return new
CodeObjectCreateExpression
(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
778
return new
CodeObjectCreateExpression
(TypeReference.DateTimeOffset, new CodePrimitiveExpression(dateTimeOffset.Ticks),
779
new
CodeObjectCreateExpression
(TypeReference.TimeSpan, new CodePrimitiveExpression(dateTimeOffset.Offset.Ticks)));
785
return new
CodeObjectCreateExpression
(TypeReference.TimeSpan, new CodePrimitiveExpression(timeSpan.Ticks));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
190
typeRef, instanceName, new
CodeObjectCreateExpression
(typeRef));
System.Data.Services.Design (8)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
801
new
CodeObjectCreateExpression
(new CodeTypeReference(typeof(System.ComponentModel.PropertyChangedEventArgs), CodeTypeReferenceOptions.GlobalReference), new CodeArgumentReferenceExpression("property"))
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
73
memberField.InitExpression = new
CodeObjectCreateExpression
(
82
memberField.InitExpression = new
CodeObjectCreateExpression
(fieldType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
263
new
CodeObjectCreateExpression
(PropertyType)
693
return new
CodeObjectCreateExpression
(TypeReference.Guid,
705
return new
CodeObjectCreateExpression
(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
181
typeRef, instanceName, new
CodeObjectCreateExpression
(typeRef));
213
new
CodeObjectCreateExpression
(
System.ServiceModel (2)
System\ServiceModel\Description\ClientClassGenerator.cs (2)
276
helperMethod.Statements.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new
CodeObjectCreateExpression
(param.Type)));
325
helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new
CodeObjectCreateExpression
(field.Type)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
175
CodeObjectCreateExpression expr = new
CodeObjectCreateExpression
(typeRef, new CodeArgumentReferenceExpression(ActivityParameterName));
System.Web (3)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
267
newExpr = new
CodeObjectCreateExpression
(ctrlTypeRef);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
135
var throwExceptionStatement = new CodeThrowExceptionStatement(new
CodeObjectCreateExpression
(
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
95
CodeObjectCreateExpression valueExpr = new
CodeObjectCreateExpression
(_controlSkinType);
System.Xml (2)
System\Xml\Serialization\XmlCodeExporter.cs (2)
272
initExpression = new
CodeObjectCreateExpression
(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] {new CodePrimitiveExpression(ticks)});
278
initExpression = new
CodeObjectCreateExpression
(new CodeTypeReference(typeof(Guid)), new CodeExpression[] {valueExpression});