25 types derived from CodeExpression
System.CodeDom (25)
System\CodeDom\CodeArgumentReferenceExpression.cs (1)
6
public class CodeArgumentReferenceExpression :
CodeExpression
System\CodeDom\CodeArrayCreateExpression.cs (1)
6
public class CodeArrayCreateExpression :
CodeExpression
System\CodeDom\CodeArrayIndexerExpression.cs (1)
6
public class CodeArrayIndexerExpression :
CodeExpression
System\CodeDom\CodeBaseReferenceExpression.cs (1)
6
public class CodeBaseReferenceExpression :
CodeExpression
System\CodeDom\CodeBinaryOperatorExpression.cs (1)
6
public class CodeBinaryOperatorExpression :
CodeExpression
System\CodeDom\CodeCastExpression.cs (1)
6
public class CodeCastExpression :
CodeExpression
System\CodeDom\CodeDefaultValueExpression.cs (1)
6
public class CodeDefaultValueExpression :
CodeExpression
System\CodeDom\CodeDelegateCreateExpression.cs (1)
6
public class CodeDelegateCreateExpression :
CodeExpression
System\CodeDom\CodeDelegateInvokeExpression.cs (1)
6
public class CodeDelegateInvokeExpression :
CodeExpression
System\CodeDom\CodeDirectionExpression.cs (1)
6
public class CodeDirectionExpression :
CodeExpression
System\CodeDom\CodeEventReferenceExpression.cs (1)
6
public class CodeEventReferenceExpression :
CodeExpression
System\CodeDom\CodeFieldReferenceExpression.cs (1)
6
public class CodeFieldReferenceExpression :
CodeExpression
System\CodeDom\CodeIndexerExpression.cs (1)
6
public class CodeIndexerExpression :
CodeExpression
System\CodeDom\CodeMethodInvokeExpression.cs (1)
6
public class CodeMethodInvokeExpression :
CodeExpression
System\CodeDom\codemethodreferenceexpression.cs (1)
6
public class CodeMethodReferenceExpression :
CodeExpression
System\CodeDom\CodeObjectCreateExpression.cs (1)
6
public class CodeObjectCreateExpression :
CodeExpression
System\CodeDom\CodeParameterDeclarationExpression.cs (1)
6
public class CodeParameterDeclarationExpression :
CodeExpression
System\CodeDom\CodePrimitiveExpression.cs (1)
6
public class CodePrimitiveExpression :
CodeExpression
System\CodeDom\CodePropertyReferenceExpression.cs (1)
6
public class CodePropertyReferenceExpression :
CodeExpression
System\CodeDom\CodePropertySetValueReferenceExpression.cs (1)
6
public class CodePropertySetValueReferenceExpression :
CodeExpression
System\CodeDom\CodeSnippetExpression.cs (1)
6
public class CodeSnippetExpression :
CodeExpression
System\CodeDom\CodeThisReferenceExpression.cs (1)
6
public class CodeThisReferenceExpression :
CodeExpression
System\CodeDom\CodeTypeOfExpression.cs (1)
6
public class CodeTypeOfExpression :
CodeExpression
System\CodeDom\CodeTypeReferenceExpression.cs (1)
6
public class CodeTypeReferenceExpression :
CodeExpression
System\CodeDom\CodeVariableReferenceExpression.cs (1)
6
public class CodeVariableReferenceExpression :
CodeExpression
7 instantiations of CodeExpression
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (5)
12
yield return new object[] { new
CodeExpression
(), typeof(int), new(), new() };
13
yield return new object[] { new
CodeExpression
(), typeof(int), new(), null };
29
yield return new object[] { new
CodeExpression
(), typeof(int), new() };
52
Assert.Throws<ArgumentNullException>("expressionType", () => new ExpressionContext(new
CodeExpression
(), null, new object(), new object()));
58
Assert.Throws<ArgumentNullException>("owner", () => new ExpressionContext(new
CodeExpression
(), typeof(int), null, new object()));
System\ComponentModel\Design\Serialization\RootContextTests.cs (2)
13
CodeExpression expression =
new
();
29
CodeExpression expression =
new
();
253 references to CodeExpression
Microsoft.Build.Tasks.Core (4)
WriteCodeFragment.cs (4)
402
CodeExpression
value;
532
private bool TryConvertParameterValue(string typeName, string rawValue, out
CodeExpression
value)
562
private
CodeExpression
ConvertParameterValueToInferredType(Type inferredType, string rawValue, string parameterName)
589
private
CodeExpression
ConvertToCodeExpression(string value, Type targetType)
PresentationBuildTasks (17)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (17)
985
CodeExpression
[] esParams = {};
1196
CodeExpression
ceEvent = cceTarget;
1787
private
CodeExpression
GetPropertyValueExpression(ITypeDescriptorContext ctx, Type typeToConvertTo, Object value, string attributeValue)
1789
CodeExpression
ce = null;
1846
CodeExpression
[] expressions = new
CodeExpression
[args.Length];
1858
foreach (
CodeExpression
e in expressions)
1875
foreach (
CodeExpression
e in expressions)
1927
private
CodeExpression
GetEventDelegate(CodeContext cc, MemberInfo miEvent, string eventName, string eventHandler)
1943
CodeExpression
cDelExp = cdce;
1948
CodeExpression
[] delParams = { cdce };
1968
private CodeStatement AddCLREvent(CodeContext cc,
CodeExpression
ce, MarkupEventInfo mei)
1974
private CodeStatement AddCLREvent(Type eventTarget, CodeContext cc,
CodeExpression
ce, MarkupEventInfo mei)
1980
CodeExpression
cDelExp = GetEventDelegate(cc, mei.mi, mei.eventName, mei.eventHandler);
2692
CodeExpression
[] uriParams = { new CodePrimitiveExpression(uriPart), cfreRelUri };
3163
CodeExpression
[] ctorParams = {};
3181
CodeExpression
ceValue = GetPropertyValueExpression(ctx, typeof(Uri), null, attributeValue);
System (1)
src\libraries\shims\System\ref\System.cs (1)
57
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeExpression
))]
System.CodeDom (105)
Microsoft\CSharp\CSharpCodeGenerator.cs (5)
420
foreach (
CodeExpression
exp in e.Indices)
440
foreach (
CodeExpression
exp in e.Indices)
1132
private void GenerateExpression(
CodeExpression
e)
2181
foreach (
CodeExpression
current in expressions)
3185
void ICodeGenerator.GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o)
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
633
private void GenerateNotIsNullExpression(
CodeExpression
e)
1036
foreach (
CodeExpression
exp in e.Indices)
1056
foreach (
CodeExpression
exp in e.Indices)
System\CodeDom\CodeArrayCreateExpression.cs (7)
15
public CodeArrayCreateExpression(CodeTypeReference createType, params
CodeExpression
[] initializers)
21
public CodeArrayCreateExpression(string createType, params
CodeExpression
[] initializers)
27
public CodeArrayCreateExpression(Type createType, params
CodeExpression
[] initializers)
51
public CodeArrayCreateExpression(CodeTypeReference createType,
CodeExpression
size)
57
public CodeArrayCreateExpression(string createType,
CodeExpression
size)
63
public CodeArrayCreateExpression(Type createType,
CodeExpression
size)
79
public
CodeExpression
SizeExpression { get; set; }
System\CodeDom\CodeArrayIndexerExpression.cs (3)
12
public CodeArrayIndexerExpression(
CodeExpression
targetObject, params
CodeExpression
[] indices)
18
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeAssignStatement.cs (4)
10
public CodeAssignStatement(
CodeExpression
left,
CodeExpression
right)
16
public
CodeExpression
Left { get; set; }
18
public
CodeExpression
Right { get; set; }
System\CodeDom\CodeAttachEventStatement.cs (4)
12
public CodeAttachEventStatement(CodeEventReferenceExpression eventRef,
CodeExpression
listener)
18
public CodeAttachEventStatement(
CodeExpression
targetObject, string eventName,
CodeExpression
listener) :
29
public
CodeExpression
Listener { get; set; }
System\CodeDom\CodeAttributeArgument.cs (3)
12
public CodeAttributeArgument(
CodeExpression
value)
17
public CodeAttributeArgument(string name,
CodeExpression
value)
29
public
CodeExpression
Value { get; set; }
System\CodeDom\CodeBinaryOperatorExpression.cs (4)
10
public CodeBinaryOperatorExpression(
CodeExpression
left, CodeBinaryOperatorType op,
CodeExpression
right)
17
public
CodeExpression
Right { get; set; }
19
public
CodeExpression
Left { get; set; }
System\CodeDom\CodeCastExpression.cs (4)
12
public CodeCastExpression(CodeTypeReference targetType,
CodeExpression
expression)
18
public CodeCastExpression(string targetType,
CodeExpression
expression)
24
public CodeCastExpression(Type targetType,
CodeExpression
expression)
36
public
CodeExpression
Expression { get; set; }
System\CodeDom\CodeConditionStatement.cs (3)
10
public CodeConditionStatement(
CodeExpression
condition, params CodeStatement[] trueStatements)
16
public CodeConditionStatement(
CodeExpression
condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements)
23
public
CodeExpression
Condition { get; set; }
System\CodeDom\CodeDelegateCreateExpression.cs (2)
13
public CodeDelegateCreateExpression(CodeTypeReference delegateType,
CodeExpression
targetObject, string methodName)
26
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeDelegateInvokeExpression.cs (4)
10
public CodeDelegateInvokeExpression(
CodeExpression
targetObject)
15
public CodeDelegateInvokeExpression(
CodeExpression
targetObject, params
CodeExpression
[] parameters)
21
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeDirectionExpression.cs (2)
10
public CodeDirectionExpression(FieldDirection direction,
CodeExpression
expression)
16
public
CodeExpression
Expression { get; set; }
System\CodeDom\CodeEventReferenceExpression.cs (2)
12
public CodeEventReferenceExpression(
CodeExpression
targetObject, string eventName)
18
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeExpressionCollection.cs (10)
17
public CodeExpressionCollection(
CodeExpression
[] value)
22
public
CodeExpression
this[int index]
24
get => (
CodeExpression
)List[index];
28
public int Add(
CodeExpression
value) => List.Add(value);
30
public void AddRange(
CodeExpression
[] value)
57
public bool Contains(
CodeExpression
value) => List.Contains(value);
59
public void CopyTo(
CodeExpression
[] array, int index) => List.CopyTo(array, index);
61
public int IndexOf(
CodeExpression
value) => List.IndexOf(value);
63
public void Insert(int index,
CodeExpression
value) => List.Insert(index, value);
65
public void Remove(
CodeExpression
value) => List.Remove(value);
System\CodeDom\CodeExpressionStatement.cs (2)
10
public CodeExpressionStatement(
CodeExpression
expression)
15
public
CodeExpression
Expression { get; set; }
System\CodeDom\CodeFieldReferenceExpression.cs (2)
12
public CodeFieldReferenceExpression(
CodeExpression
targetObject, string fieldName)
18
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeIndexerExpression.cs (3)
12
public CodeIndexerExpression(
CodeExpression
targetObject, params
CodeExpression
[] indices)
18
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeIterationStatement.cs (2)
10
public CodeIterationStatement(CodeStatement initStatement,
CodeExpression
testExpression, CodeStatement incrementStatement, params CodeStatement[] statements)
20
public
CodeExpression
TestExpression { get; set; }
System\CodeDom\CodeMemberField.cs (1)
36
public
CodeExpression
InitExpression { get; set; }
System\CodeDom\CodeMethodInvokeExpression.cs (3)
12
public CodeMethodInvokeExpression(CodeMethodReferenceExpression method, params
CodeExpression
[] parameters)
18
public CodeMethodInvokeExpression(
CodeExpression
targetObject, string methodName, params
CodeExpression
[] parameters)
System\CodeDom\codemethodreferenceexpression.cs (3)
13
public CodeMethodReferenceExpression(
CodeExpression
targetObject, string methodName)
19
public CodeMethodReferenceExpression(
CodeExpression
targetObject, string methodName, params CodeTypeReference[] typeParameters)
29
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeMethodReturnStatement.cs (2)
10
public CodeMethodReturnStatement(
CodeExpression
expression)
15
public
CodeExpression
Expression { get; set; }
System\CodeDom\CodeObjectCreateExpression.cs (3)
12
public CodeObjectCreateExpression(CodeTypeReference createType, params
CodeExpression
[] parameters)
18
public CodeObjectCreateExpression(string createType, params
CodeExpression
[] parameters)
24
public CodeObjectCreateExpression(Type createType, params
CodeExpression
[] parameters)
System\CodeDom\CodePropertyReferenceExpression.cs (2)
12
public CodePropertyReferenceExpression(
CodeExpression
targetObject, string propertyName)
18
public
CodeExpression
TargetObject { get; set; }
System\CodeDom\CodeRemoveEventStatement.cs (4)
12
public CodeRemoveEventStatement(CodeEventReferenceExpression eventRef,
CodeExpression
listener)
18
public CodeRemoveEventStatement(
CodeExpression
targetObject, string eventName,
CodeExpression
listener)
30
public
CodeExpression
Listener { get; set; }
System\CodeDom\CodeStatementCollection.cs (1)
30
public int Add(
CodeExpression
value) => Add(new CodeExpressionStatement(value));
System\CodeDom\CodeThrowExceptionStatement.cs (2)
10
public CodeThrowExceptionStatement(
CodeExpression
toThrow)
15
public
CodeExpression
ToThrow { get; set; }
System\CodeDom\CodeVariableDeclarationStatement.cs (4)
31
public CodeVariableDeclarationStatement(CodeTypeReference type, string name,
CodeExpression
initExpression)
38
public CodeVariableDeclarationStatement(string type, string name,
CodeExpression
initExpression)
45
public CodeVariableDeclarationStatement(Type type, string name,
CodeExpression
initExpression)
52
public
CodeExpression
InitExpression { get; set; }
System\CodeDom\Compiler\CodeDomProvider.cs (1)
160
public virtual void GenerateCodeFromExpression(
CodeExpression
expression, TextWriter writer, CodeGeneratorOptions options) =>
System\CodeDom\Compiler\CodeGenerator.cs (3)
282
void ICodeGenerator.GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o)
509
protected void GenerateExpression(
CodeExpression
e)
1216
foreach (
CodeExpression
current in expressions)
System\CodeDom\Compiler\CodeValidator.cs (6)
28
else if (e is
CodeExpression
)
30
ValidateExpression((
CodeExpression
)e);
602
foreach (
CodeExpression
current in expressions)
669
private void ValidateExpression(
CodeExpression
e)
847
foreach (
CodeExpression
exp in e.Indices)
856
foreach (
CodeExpression
exp in e.Indices)
System\CodeDom\Compiler\ICodeGenerator.cs (1)
16
void GenerateCodeFromExpression(
CodeExpression
e, TextWriter w, CodeGeneratorOptions o);
System.Runtime.Serialization.Schema (5)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
1899
new
CodeExpression
[] { getCurrentName, getCurrentValue });
2010
CodeExpression
left = new CodeFieldReferenceExpression(ThisReference, fieldName);
2011
CodeExpression
right = new CodePropertySetValueReferenceExpression();
2015
"ReferenceEquals", new
CodeExpression
[] { left, right });
2019
left = new CodeMethodInvokeExpression(left, "Equals", new
CodeExpression
[] { right });
System.Windows.Forms.Design (117)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
20
private readonly Dictionary<string, List<
CodeExpression
>> _expressions = [];
30
private static void PopulateCompleteStatements(object? data, string name, CodeStatementCollection completeStatements, Dictionary<string, List<
CodeExpression
>> expressions)
45
else if (data is
CodeExpression
expression)
49
if (!expressions.TryGetValue(name, out List<
CodeExpression
>? exps))
347
if (_expressions.Remove(name, out List<
CodeExpression
>? exps))
349
foreach (
CodeExpression
exp in exps)
363
if (_expressions.TryGetValue(name, out List<
CodeExpression
>? exps))
365
foreach (
CodeExpression
exp in exps)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (7)
29
public virtual string? GetTargetComponentName(CodeStatement? statement,
CodeExpression
? expression, Type? targetType)
51
if (codeObject is
CodeExpression
expression)
87
string supportedTypes = $"{nameof(
CodeExpression
)}, {nameof(CodeStatement)}, {nameof(CodeStatementCollection)}";
147
CodeExpression
? expression = SerializeCreationExpression(manager, value, out bool isCompleteExpression);
187
CodeExpression
variableReference = new CodeVariableReferenceExpression(varName);
236
CodeExpression
? expression = GetExpression(manager, owningObject);
294
protected
CodeExpression
? SerializeToReferenceExpression(IDesignerSerializationManager manager, object value)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (44)
493
if (targetObject is not
CodeExpression
)
519
CodeExpression
expression = statement.Left;
533
if (rhs is
CodeExpression
)
557
if (rhs is
CodeExpression
)
610
if (rhs is
CodeExpression
)
639
if (rhs is
CodeExpression
)
654
protected object? DeserializeExpression(IDesignerSerializationManager manager, string? name,
CodeExpression
? expression)
713
if (parameters[i] is
CodeExpression
)
723
if (target is not
CodeExpression
)
783
if (target is not null and not
CodeExpression
)
854
if (parameters[i] is
CodeExpression
)
966
foreach (
CodeExpression
initializer in arrayCreateEx.Initializers)
972
if (o is not
CodeExpression
)
1080
if (parameters[i] is
CodeExpression
)
1113
if (indexes[i] is
CodeExpression
)
1226
if (targetObject is not
CodeExpression
)
1493
if (target is not null and not
CodeExpression
)
1543
if (lhs is not null and not
CodeExpression
)
1552
if (rhs is
CodeExpression
)
1655
protected
CodeExpression
? GetExpression(IDesignerSerializationManager manager, object value)
1657
CodeExpression
? expression = null;
1702
CodeExpression
? baseExpression = SerializeToExpression(manager, baseInstance);
1876
protected
CodeExpression
? SerializeCreationExpression(IDesignerSerializationManager manager, object value, out bool isComplete)
1887
CodeExpression
expression = ctx.Expression;
1914
CodeExpression
? expression = SerializeToResourceExpression(manager, value);
1935
private
CodeExpression
? SerializeInstanceDescriptor(IDesignerSerializationManager manager, object value, InstanceDescriptor descriptor)
1937
CodeExpression
expression;
1940
CodeExpression
[] arguments = new
CodeExpression
[descriptor.Arguments.Count];
1957
CodeExpression
? exp = null;
2200
CodeExpression
? target = SerializeToExpression(manager, value);
2305
protected
CodeExpression
? SerializeToExpression(IDesignerSerializationManager manager, object? value)
2307
CodeExpression
? expression = null;
2378
expression = result as
CodeExpression
;
2430
private static
CodeExpression
? GetLegacyExpression(IDesignerSerializationManager manager, object value)
2432
CodeExpression
? expression = null;
2492
expression = exp as
CodeExpression
;
2525
protected
CodeExpression
? SerializeToResourceExpression(IDesignerSerializationManager manager, object? value)
2538
protected
CodeExpression
? SerializeToResourceExpression(IDesignerSerializationManager manager, object? value, bool ensureInvariant)
2540
CodeExpression
? result = null;
2560
result = ResourceCodeDomSerializer.Default.Serialize(manager, value, false, ensureInvariant) as
CodeExpression
;
2576
protected void SetExpression(IDesignerSerializationManager manager, object value,
CodeExpression
expression)
2587
protected void SetExpression(IDesignerSerializationManager manager, object value,
CodeExpression
expression, bool isPreset)
2612
CodeExpression
? expression = null;
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (9)
145
CodeExpression
? target;
296
protected virtual object? SerializeCollection(IDesignerSerializationManager manager,
CodeExpression
? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
417
CodeExpression
? expression = null;
470
CodeExpression
? targetExpression,
509
CodeExpression
? serializedObject = null;
555
CodeExpression
? targetExpression,
566
List<
CodeExpression
> arrayList = new(valuesToSerialize.Count);
586
CodeExpression
? expression = null;
634
foreach (
CodeExpression
expression in arrayList)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
150
CodeExpression
? assignLhs = GetExpression(manager, value);
269
CodeExpression
? assignRhs = null;
508
private static void SerializeLoadComponentSettings(CodeStatementCollection statements,
CodeExpression
valueExpression)
527
private static void SerializeSupportInitialize(CodeStatementCollection statements,
CodeExpression
valueExpression, string methodName)
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
48
CodeExpression
lhs;
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (2)
25
CodeExpression
? expression = null;
67
CodeExpression
newExpression = new CodeFieldReferenceExpression(enumType, termString);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
47
CodeExpression
? eventTarget = SerializeToExpression(manager, value);
System\ComponentModel\Design\Serialization\ExpressionContext.cs (3)
26
public ExpressionContext(
CodeExpression
expression, Type expressionType, object owner, object? presetValue)
34
public ExpressionContext(
CodeExpression
expression, Type expressionType, object owner) : this(expression, expressionType, owner, null)
41
public
CodeExpression
Expression { get; }
System\ComponentModel\Design\Serialization\ExpressionTable.cs (4)
17
internal void SetExpression(object value,
CodeExpression
expression, bool isPreset)
23
internal
CodeExpression
? GetExpression(object value)
33
internal ExpressionInfo(
CodeExpression
expression, bool isPreset)
39
internal
CodeExpression
Expression { get; }
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (2)
112
CodeExpression
? ownerExpression = SerializeToExpression(manager, tree.Owner);
131
CodeExpression
? rmExpression = GetExpression(manager, resourceManager);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (11)
148
CodeExpression
? target = SerializeToExpression(manager, value);
152
CodeExpression
? propertyRef = null;
159
CodeExpression
? extender = SerializeToExpression(manager, exAttr.Provider);
160
CodeExpression
? extended = SerializeToExpression(manager, value);
229
CodeExpression
? extender = SerializeToExpression(manager, exAttr.Provider);
230
CodeExpression
? extended = SerializeToExpression(manager, value);
236
CodeExpression
? serializedPropertyValue = null;
284
CodeExpression
? target = SerializeToExpression(manager, value);
288
CodeExpression
propertyRef = new CodePropertyReferenceExpression(target, property.Name);
290
CodeExpression
? serializedPropertyValue = null;
305
CodeExpression
? rhsTarget = SerializeToExpression(manager, relationship.Owner);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (6)
32
public override string? GetTargetComponentName(CodeStatement? statement,
CodeExpression
? expression, Type? type)
76
if (codeObject is
CodeExpression
expression)
111
string supportedTypes = $"{nameof(
CodeExpression
)}, {nameof(CodeStatement)}, {nameof(CodeStatementCollection)}";
261
private
CodeExpression
Serialize(IDesignerSerializationManager manager, object? value, bool forceInvariant, bool shouldSerializeInvariant, bool ensureInvariant)
287
CodeExpression
[] parameters;
298
CodeExpression
initExpression = new CodeObjectCreateExpression(typeof(ComponentResourceManager), parameters);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
740
CodeExpression
expression = tree.Expression;
System\ComponentModel\Design\Serialization\RootContext.cs (2)
20
public RootContext(
CodeExpression
expression, object value)
29
public
CodeExpression
Expression { get; }
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
245
else if (manager.TryGetContext(out RootContext? rootCtx) && codeObject is
CodeExpression
exp && rootCtx.Expression == exp)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
787
CodeExpression
getValue = new CodeMethodInvokeExpression(
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (3)
361
CodeExpression
? field = SerializeToExpression(manager, control);
436
CodeExpression
controlsCollection = new CodePropertyReferenceExpression(SerializeToExpression(manager, control), "Controls");
444
CodeExpression
? childControl = SerializeToExpression(manager, child);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (1)
19
CodeExpression
? targetExpression,
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (1)
26
protected override object SerializeCollection(IDesignerSerializationManager manager,
CodeExpression
? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (2)
49
CodeExpression
? imageListObject = GetExpression(manager, value);
53
CodeExpression
imageListImagesProperty = new CodePropertyReferenceExpression(imageListObject, "Images");
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (2)
20
protected override object SerializeCollection(IDesignerSerializationManager manager,
CodeExpression
? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
64
CodeExpression
? serializedObj = SerializeToExpression(manager, o);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2224
protected override object SerializeCollection(IDesignerSerializationManager manager,
CodeExpression
targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (2)
18
public void ExpressionContext_Ctor_CodeExpression_Type_Object_Object_TestData(
CodeExpression
expression, Type expressionType, object owner, object presetValue)
34
public void ExpressionContext_Ctor_CodeExpression_Type_Object_TestData(
CodeExpression
expression, Type expressionType, object owner)
System\ComponentModel\Design\Serialization\RootContextTests.cs (2)
13
CodeExpression
expression = new();
29
CodeExpression
expression = new();