159 references to CodeFieldReferenceExpression
PresentationBuildTasks (15)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (15)
1202
ceEvent = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), elementName);
1286
CodeFieldReferenceExpression cfreContentLoaded = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), CONTENT_LOADED);
1467
CodeFieldReferenceExpression cfre = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never");
1781
CodeFieldReferenceExpression cfre = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name);
1867
CodeFieldReferenceExpression cfreEvent = new
CodeFieldReferenceExpression
(ctreEvent, fiEvent.Name);
2555
ccsCL.Condition = new
CodeFieldReferenceExpression
(null, CONTENT_LOADED);
2568
CodeAssignStatement casCL = new CodeAssignStatement(new
CodeFieldReferenceExpression
(null, CONTENT_LOADED),
2600
CodeFieldReferenceExpression cfreRelUri = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(System.UriKind)), "Relative");
2696
CodeFieldReferenceExpression cfre1 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Public");
2697
CodeFieldReferenceExpression cfre2 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "NonPublic");
2698
CodeFieldReferenceExpression cfre3 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Instance");
2699
CodeFieldReferenceExpression cfre4 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "CreateInstance");
2732
cmieGPV.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
2761
cmieSPV.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
2802
CodeFieldReferenceExpression cfre5 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(BindingFlags)), "InvokeMethod");
System.Activities (14)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (14)
185
new CodeAttributeArgument(new
CodeFieldReferenceExpression
(
779
new
CodeFieldReferenceExpression
(
1010
new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), dataContextActivitiesFieldName),
1017
new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), dataContextActivitiesFieldName),
1022
new
CodeFieldReferenceExpression
(
1025
new
CodeFieldReferenceExpression
(
1041
new
CodeFieldReferenceExpression
(
1050
new
CodeFieldReferenceExpression
(
1082
new
CodeFieldReferenceExpression
(
1086
new
CodeFieldReferenceExpression
(
1089
new
CodeFieldReferenceExpression
(
1183
new
CodeFieldReferenceExpression
(
1693
CodeFieldReferenceExpression fieldReference = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), valueField.Key);
1728
new
CodeFieldReferenceExpression
(
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1434
private static CodeExpression Field(CodeExpression exp, string field) { return new
CodeFieldReferenceExpression
(exp, field);}
System.Data.Entity.Design (13)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (5)
397
new
CodeFieldReferenceExpression
(thisRef, EntityViewGenerationConstants.EdmEntityContainerName),
401
new
CodeFieldReferenceExpression
(thisRef, EntityViewGenerationConstants.StoreEntityContainerName),
405
new
CodeFieldReferenceExpression
(thisRef, EntityViewGenerationConstants.HashOverMappingClosure),
409
new
CodeFieldReferenceExpression
(thisRef, EntityViewGenerationConstants.HashOverAllExtentViews),
413
new
CodeFieldReferenceExpression
(thisRef, EntityViewGenerationConstants.ViewCountPropertyName),
System\Data\EntityModel\Emitters\Emitter.cs (1)
67
return new
CodeFieldReferenceExpression
(typeref, member);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
388
EmitExpressionEqualsNull(new
CodeFieldReferenceExpression
(ThisRef, fieldName)),
390
new
CodeFieldReferenceExpression
(ThisRef, fieldName),
405
new
CodeFieldReferenceExpression
(
451
new
CodeFieldReferenceExpression
(null, parameter.Name)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
506
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.GetName(type, value));
640
_fieldRef = new
CodeFieldReferenceExpression
(ThisRef, FieldName);
651
_complexPropertyInitializedFieldRef = new
CodeFieldReferenceExpression
(ThisRef, ComplexPropertyInitializedFieldName);
System.Data.Services.Design (13)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
489
var syndicationItem = new
CodeFieldReferenceExpression
(
492
var contentKind = new
CodeFieldReferenceExpression
(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (6)
199
new
CodeFieldReferenceExpression
(ThisRef, "ResolveName"),
213
new
CodeFieldReferenceExpression
(ThisRef, "ResolveType"),
549
EmitExpressionEqualsNull(new
CodeFieldReferenceExpression
(ThisRef, fieldName)),
551
new
CodeFieldReferenceExpression
(ThisRef, fieldName),
566
new
CodeFieldReferenceExpression
(
615
new
CodeFieldReferenceExpression
(null, parameter.Name)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
76
new
CodeFieldReferenceExpression
(
339
return new
CodeFieldReferenceExpression
(ThisRef, Utils.FieldNameFromPropName(Item.Name));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
466
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.GetName(type, value));
567
_fieldRef = new
CodeFieldReferenceExpression
(ThisRef, FieldName);
580
_complexPropertyInitializedFieldRef = new
CodeFieldReferenceExpression
(ThisRef, ComplexPropertyInitializedFieldName);
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\Scripts.cs (1)
265
new
CodeFieldReferenceExpression
(
System\Xml\Xsl\XsltOld\Compiler.cs (1)
785
new
CodeFieldReferenceExpression
(
System.Management (25)
WmiGenerator.cs (25)
986
caa.Value = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("DesignerSerializationVisibility"),"Hidden");
1032
caa.Value = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("DesignerSerializationVisibility"),"Hidden");
1279
caa.Value = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("DesignerSerializationVisibility"),"Hidden");
1543
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"),
1551
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(new CodeTypeReference(PublicProperties[prop.Name].ToString() + "Values")), "NULL_ENUM_VALUE"),
3179
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.DateTime"),
3262
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
5433
caa.Value = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("DesignerSerializationVisibility"),"Hidden");
5475
cboe4.Right = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.String"),"Empty");
5989
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.DateTime"),"MinValue");
6088
caa.Value = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("DesignerSerializationVisibility"),"Hidden");
6447
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),"initializer",new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
6474
CodeFieldReferenceExpression cpreMinVal = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.DateTime"),"MinValue");
6478
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),tempStr,new
CodeFieldReferenceExpression
(
6575
cboe.Left = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"TicksPerMillisecond");
6756
cboe.Right = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"TicksPerMinute");
6938
CodeFieldReferenceExpression cpreMaxVal = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"MaxValue");
6968
CodeFieldReferenceExpression cpreMinVal = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"MinValue");
7077
cboe2.Right = new
CodeFieldReferenceExpression
(
7162
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.String"),"Empty")));
7192
cboe.Right = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"TicksPerMinute");
7246
cboe2.Right = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"TicksPerMinute");
7374
cboe2.Right = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.TimeSpan"),"TicksPerMillisecond");
7586
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("System.String"),"Empty")));
7634
new
CodeFieldReferenceExpression
(
System.Runtime.Serialization (8)
System\Runtime\Serialization\CodeExporter.cs (8)
1673
setNode.Left = new
CodeFieldReferenceExpression
(ThisReference, Globals.NodeArrayFieldName);
1734
new
CodeFieldReferenceExpression
(null, typeNameFieldName)
1739
new
CodeFieldReferenceExpression
(null, typeNameFieldName)
1889
propertyGet.Expression = new
CodeFieldReferenceExpression
(ThisReference, Globals.ExtensionDataObjectFieldName);
1893
propertySet.Left = new
CodeFieldReferenceExpression
(ThisReference, Globals.ExtensionDataObjectFieldName);
1949
propertyGet.Expression = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
1953
propertySet.Left = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
1958
CodeExpression left = new
CodeFieldReferenceExpression
(ThisReference, fieldName);
System.ServiceModel (16)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
43
newValue = new
CodeFieldReferenceExpression
(
System\ServiceModel\Description\ClientClassGenerator.cs (7)
256
CodeAttributeArgument browsableAttributeValue = new CodeAttributeArgument(new
CodeFieldReferenceExpression
(browsableAttributeState, editorBrowsableState.ToString()));
320
CodeFieldReferenceExpression fieldRef = new
CodeFieldReferenceExpression
(target, field.Name);
870
invokeAsync.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), beginOperationDelegate.Name));
879
invokeAsync.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), endOperationDelegate.Name));
880
invokeAsync.Parameters.Add(new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), operationCompletedDelegate.Name));
924
new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), delegateField.Name),
928
new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), delegateField.Name),
System\ServiceModel\Description\OperationGenerator.cs (3)
776
new
CodeFieldReferenceExpression
(
836
otherCtor.Statements.Add(new CodeAssignStatement(new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name)));
1035
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(type), Enum.Format(type, val, "G"));
System\ServiceModel\Description\ServiceContractGenerator.cs (5)
235
return new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(EnumType)), Enum.Format(typeof(EnumType), value, "G"));
415
new
CodeFieldReferenceExpression
(
427
new
CodeFieldReferenceExpression
(
472
new
CodeFieldReferenceExpression
(
668
new
CodeFieldReferenceExpression
(
System.Web (27)
Compilation\AssemblyBuilder.cs (2)
592
CodeFieldReferenceExpression field = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(enumType), fieldName);
599
CodeFieldReferenceExpression field = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(enumType), fieldName);
Compilation\BaseCodeDomTreeGenerator.cs (5)
174
editorBrowsableAttribute.Arguments.Add(new CodeAttributeArgument(new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never")));
449
new
CodeFieldReferenceExpression
(
458
new
CodeFieldReferenceExpression
(
575
CodeFieldReferenceExpression fieldRef = new
CodeFieldReferenceExpression
(
602
CodeExpression fieldAccess = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), fieldName);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (5)
298
CodeFieldReferenceExpression ctrlNameExpr = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), builder.ID);
356
set.Left = new
CodeFieldReferenceExpression
(ctrlRefExpr, pseSub.Name);
474
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(TemplateInstance)),
480
CodeExpression templateFieldRef = new
CodeFieldReferenceExpression
(
922
CodeExpression templateFieldRef = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), fieldName);
Compilation\CodeDOMUtility.cs (1)
105
CodeFieldReferenceExpression fieldRef = new
CodeFieldReferenceExpression
(BuildGlobalCodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name);
Compilation\PageCodeDomTreeGenerator.cs (8)
111
initFile.Left = new
CodeFieldReferenceExpression
(_classTypeExpr, fileDependenciesName);
186
new
CodeFieldReferenceExpression
(
241
new
CodeFieldReferenceExpression
(
305
new
CodeFieldReferenceExpression
(_classTypeExpr, outputCacheSettingsFieldName);
388
addDeps.Parameters.Add(new
CodeFieldReferenceExpression
(_classTypeExpr, fileDependenciesName));
400
call.Parameters.Add(new
CodeFieldReferenceExpression
(
417
new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(TraceMode)), Parser.TraceMode.ToString())));
433
CodeFieldReferenceExpression right = new
CodeFieldReferenceExpression
(
Compilation\PageThemeCodeDomTreeGenerator.cs (3)
80
CodeFieldReferenceExpression varExpr = new
CodeFieldReferenceExpression
(
119
CodeFieldReferenceExpression accessExpr = new
CodeFieldReferenceExpression
(
156
CodeFieldReferenceExpression accessExpr = new
CodeFieldReferenceExpression
(
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
52
readResource.Left = new
CodeFieldReferenceExpression
(_classTypeExpr,
203
methCallExpression.Parameters.Add(new
CodeFieldReferenceExpression
(
UI\SimplePropertyEntry.cs (1)
85
leftExpr = new
CodeFieldReferenceExpression
(ctrlRefExpr, Name);
System.Web.Services (13)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
257
invokeParams[3] = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), callbackMember);
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
28
CodeFieldReferenceExpression versionEnumFieldReference = new
CodeFieldReferenceExpression
(versionEnumTypeReference, Enum.Format(typeof(SoapProtocolVersion), SoapProtocolVersion.Soap12, "G"));
System\Web\Services\Description\SoapProtocolImporter.cs (6)
616
AddMetadataProperty("Direction", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(SoapHeaderDirection).FullName), SoapHeaderDirection.Out.ToString()));
619
AddMetadataProperty("Direction", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(SoapHeaderDirection).FullName), SoapHeaderDirection.InOut.ToString()));
767
AddMetadataProperty("Use", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(SoapBindingUse).FullName), Enum.Format(typeof(SoapBindingUse), soapRequestBinding.Use, "G")));
772
AddMetadataProperty("Use", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(SoapBindingUse).FullName), Enum.Format(typeof(SoapBindingUse), soapRequestBinding.Use, "G")));
773
AddMetadataProperty("ParameterStyle", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(SoapParameterStyle).FullName), Enum.Format(typeof(SoapParameterStyle), hasWrapper ? SoapParameterStyle.Wrapped : SoapParameterStyle.Bare, "G")));
933
invokeParams[2] = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), callbackMember);
System\Web\Services\Description\WebCodeGenerator.cs (5)
95
ret.Expression = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
98
CodeExpression left = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
336
CodeFieldReferenceExpression member = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), callbackMember);
388
ctor.Statements.Add(new CodeAssignStatement(new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), data.Name), new CodeArgumentReferenceExpression(results)));
410
valueRef.TargetObject = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
System.Workflow.Activities (3)
Rules\Parser\Parser.cs (2)
1594
fieldOrPropExpr = new
CodeFieldReferenceExpression
(postfixExpr, name);
1654
fieldOrPropExpr = new
CodeFieldReferenceExpression
(primaryExpr, name);
WebServiceReceive.cs (1)
760
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new CodeAttributeArgument("ConformsTo", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new CodeAttributeArgument("EmitConformanceClaims", new CodePrimitiveExpression(true)));
System.Workflow.ComponentModel (2)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
109
param1 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(dependencyProperty.OwnerType), dependencyPropertyName);
207
CodeExpression param1 = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(ownerTypeName), propName + "Property");
System.Xml (6)
System\Xml\Serialization\CodeExporter.cs (2)
306
ret.Expression = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
310
CodeExpression left = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
System\Xml\Serialization\XmlCodeExporter.cs (4)
209
CodeExpression enumRef = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(mapping.TypeDesc.FullName), values[i]);
217
valueExpression = new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(mapping.TypeDesc.FullName), (string)value);
477
assign.Left = new
CodeFieldReferenceExpression
(new CodeThisReferenceExpression(), field.Name);
790
attribute.Arguments.Add(new CodeAttributeArgument("Form", new
CodeFieldReferenceExpression
(new CodeTypeReferenceExpression(typeof(XmlSchemaForm).FullName), Enum.Format(typeof(XmlSchemaForm), form, "G"))));
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
26
return new
CodeFieldReferenceExpression
(targetObject, fieldName);