1 type derived from CodeStatementCollection
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2821
internal class OrderedCodeStatementCollection :
CodeStatementCollection
21 instantiations of CodeStatementCollection
System.CodeDom (9)
System\CodeDom\CodeCatchClause.cs (1)
44
public CodeStatementCollection Statements => _statements ??= new
CodeStatementCollection
();
System\CodeDom\CodeConditionStatement.cs (2)
25
public CodeStatementCollection TrueStatements { get; } = new
CodeStatementCollection
();
27
public CodeStatementCollection FalseStatements { get; } = new
CodeStatementCollection
();
System\CodeDom\CodeIterationStatement.cs (1)
24
public CodeStatementCollection Statements { get; } = new
CodeStatementCollection
();
System\CodeDom\CodeMemberMethod.cs (1)
9
private readonly CodeStatementCollection _statements = new
CodeStatementCollection
();
System\CodeDom\CodeMemberProperty.cs (2)
49
public CodeStatementCollection GetStatements { get; } = new
CodeStatementCollection
();
51
public CodeStatementCollection SetStatements { get; } = new
CodeStatementCollection
();
System\CodeDom\CodeTryCatchFinallyStatement.cs (2)
23
public CodeStatementCollection TryStatements { get; } = new
CodeStatementCollection
();
27
public CodeStatementCollection FinallyStatements { get; } = new
CodeStatementCollection
();
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2391
statements = new
CodeStatementCollection
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (1)
44
return new
CodeStatementCollection
();
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (9)
143
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
157
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
245
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
347
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
392
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
443
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
489
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
533
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
582
CodeDomHelpers.AssertEqualCodeStatementCollection(new
CodeStatementCollection
(
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (1)
93
baseSerializerMock.Setup(b => b.Serialize(managerMock.Object, imageList)).Returns(new
CodeStatementCollection
());
124 references to CodeStatementCollection
System (1)
src\libraries\shims\System\ref\System.cs (1)
92
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeStatementCollection
))]
System.CodeDom (23)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
629
private void GenerateStatements(
CodeStatementCollection
stmts)
951
CodeStatementCollection
falseStatements = e.FalseStatements;
1005
CodeStatementCollection
finallyStatements = e.FinallyStatements;
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
1300
CodeStatementCollection
falseStatements = e.FalseStatements;
1329
CodeStatementCollection
finallyStatements = e.FinallyStatements;
2597
private void GenerateVBStatements(
CodeStatementCollection
stms)
System\CodeDom\CodeCatchClause.cs (2)
8
private
CodeStatementCollection
_statements;
44
public
CodeStatementCollection
Statements => _statements ??= new CodeStatementCollection();
System\CodeDom\CodeConditionStatement.cs (2)
25
public
CodeStatementCollection
TrueStatements { get; } = new CodeStatementCollection();
27
public
CodeStatementCollection
FalseStatements { get; } = new CodeStatementCollection();
System\CodeDom\CodeIterationStatement.cs (1)
24
public
CodeStatementCollection
Statements { get; } = new CodeStatementCollection();
System\CodeDom\CodeMemberMethod.cs (2)
9
private readonly
CodeStatementCollection
_statements = new CodeStatementCollection();
30
public
CodeStatementCollection
Statements
System\CodeDom\CodeMemberProperty.cs (2)
49
public
CodeStatementCollection
GetStatements { get; } = new CodeStatementCollection();
51
public
CodeStatementCollection
SetStatements { get; } = new CodeStatementCollection();
System\CodeDom\CodeStatementCollection.cs (2)
12
public CodeStatementCollection(
CodeStatementCollection
value)
45
public void AddRange(
CodeStatementCollection
value)
System\CodeDom\CodeTryCatchFinallyStatement.cs (2)
23
public
CodeStatementCollection
TryStatements { get; } = new CodeStatementCollection();
27
public
CodeStatementCollection
FinallyStatements { get; } = new CodeStatementCollection();
System\CodeDom\Compiler\CodeGenerator.cs (1)
975
protected void GenerateStatements(
CodeStatementCollection
stmts)
System\CodeDom\Compiler\CodeValidator.cs (3)
465
private void ValidateStatements(
CodeStatementCollection
stmts)
507
CodeStatementCollection
falseStatements = e.FalseStatements;
528
CodeStatementCollection
finallyStatements = e.FinallyStatements;
System.Windows.Forms.Design (88)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomComponentSerializationState.cs (2)
20
public readonly
CodeStatementCollection
? Context;
40
CodeStatementCollection
? ctxStatements,
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (9)
30
private static void PopulateCompleteStatements(object? data, string name,
CodeStatementCollection
completeStatements, Dictionary<string, List<CodeExpression>> expressions)
37
if (data is
CodeStatementCollection
statements)
70
CodeStatementCollection
completeStatements = [];
82
CodeStatementCollection
mappedStatements = [];
506
CodeStatementCollection
? ctxStatements = null;
508
CodeStatementCollection
extraStatements = [];
526
if (extraStatements.Count > 0 && code is
CodeStatementCollection
existingStatements)
538
CodeStatementCollection
codeStatements = [];
567
if (code is
CodeStatementCollection
existingStatements)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (7)
55
else if (codeObject is
CodeStatementCollection
statements)
87
string supportedTypes = $"{nameof(CodeExpression)}, {nameof(CodeStatement)}, {nameof(
CodeStatementCollection
)}";
168
CodeStatementCollection
statements = [];
227
public virtual
CodeStatementCollection
SerializeMember(IDesignerSerializationManager manager, object owningObject, MemberDescriptor member)
233
CodeStatementCollection
statements = [];
263
public virtual
CodeStatementCollection
SerializeMemberAbsolute(IDesignerSerializationManager manager, object owningObject, MemberDescriptor member)
269
CodeStatementCollection
statements;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (12)
2100
protected void SerializeEvent(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, EventDescriptor descriptor)
2130
protected void SerializeEvents(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, params Attribute[]? filter)
2142
protected void SerializeProperties(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, Attribute[]? filter)
2194
protected void SerializePropertiesToResources(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, Attribute[]? filter)
2246
protected void SerializeProperty(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, PropertyDescriptor propertyToSerialize)
2342
CodeStatementCollection
? saveStatements = null;
2386
CodeStatementCollection
? statements = result as
CodeStatementCollection
;
2401
saveStatements ??= manager.GetContext<
CodeStatementCollection
>();
2544
CodeStatementCollection
? saveStatements = null;
2602
internal static void FillStatementTable(IDesignerSerializationManager manager, IDictionary table,
CodeStatementCollection
statements)
2607
internal static void FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary<string, string>? names,
CodeStatementCollection
statements, string? className)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (17)
13
private
CodeStatementCollection
? _container;
14
private
CodeStatementCollection
? _begin;
15
private
CodeStatementCollection
? _end;
16
private
CodeStatementCollection
? _statements;
17
private
CodeStatementCollection
? _locals;
18
private
CodeStatementCollection
? _fields;
19
private
CodeStatementCollection
? _variables;
20
private readonly
CodeStatementCollection
_targetStatements;
28
internal CodeMethodMap(
CodeStatementCollection
targetStatements)
33
internal
CodeStatementCollection
BeginStatements => _begin ??= [];
35
internal
CodeStatementCollection
EndStatements => _end ??= [];
37
internal
CodeStatementCollection
ContainerStatements => _container ??= [];
41
internal
CodeStatementCollection
Statements => _statements ??= [];
43
internal
CodeStatementCollection
LocalVariables => _locals ??= [];
45
internal
CodeStatementCollection
FieldAssignments => _fields ??= [];
48
internal
CodeStatementCollection
VariableAssignments => _variables ??= [];
50
internal void Add(
CodeStatementCollection
statements)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (6)
192
CodeStatementCollection
? resultCollection = result as
CodeStatementCollection
;
468
private
CodeStatementCollection
SerializeViaAdd(
474
CodeStatementCollection
statements = [];
553
private
CodeStatementCollection
SerializeViaAddRange(
559
CodeStatementCollection
statements = [];
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
241
public
CodeStatementCollection
Statements = [];
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
104
CodeStatementCollection
? statements = 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)
47
CodeStatementCollection
statements = [];
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
23
public override void Serialize(IDesignerSerializationManager manager, object value, MemberDescriptor descriptor,
CodeStatementCollection
statements)
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (3)
93
CodeStatementCollection
? statements = (
CodeStatementCollection
?)manager.Context[typeof(
CodeStatementCollection
)];
System\ComponentModel\Design\Serialization\MemberCodeDomSerializer.cs (1)
24
CodeStatementCollection
statements);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (5)
83
public override void Serialize(IDesignerSerializationManager manager, object value, MemberDescriptor descriptor,
CodeStatementCollection
statements)
130
private void SerializeContentProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property, bool isExtender,
CodeStatementCollection
statements)
204
if (result is
CodeStatementCollection
csc)
224
private void SerializeExtenderProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property,
CodeStatementCollection
statements)
282
private void SerializeNormalProperty(IDesignerSerializationManager manager, object value, PropertyDescriptor property,
CodeStatementCollection
statements)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (4)
80
else if (codeObject is
CodeStatementCollection
statements)
111
string supportedTypes = $"{nameof(CodeExpression)}, {nameof(CodeStatement)}, {nameof(
CodeStatementCollection
)}";
273
CodeStatementCollection
? statements = manager.GetContext<
CodeStatementCollection
>();
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
29
public override void Serialize(IDesignerSerializationManager manager, object value, MemberDescriptor descriptor,
CodeStatementCollection
statements)
System\ComponentModel\Design\Serialization\StatementContext.cs (4)
51
private void AddOwner(object statementOwner,
CodeStatementCollection
? statements)
88
public
CodeStatementCollection
? this[object statementOwner]
185
public
CodeStatementCollection
? Statements;
186
public TableEntry(object owner,
CodeStatementCollection
? statements)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
215
private object? DeserializeName(IDesignerSerializationManager manager, string name,
CodeStatementCollection
? statements)
494
CodeStatementCollection
? statements = statementCtx.StatementCollection[member];
516
CodeStatementCollection
? rootStatements = statementCtx.StatementCollection[root];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (6)
187
if (retVal is
CodeStatementCollection
csCollection)
339
CodeStatementCollection
statements,
391
private void SerializePerformLayout(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object control)
396
private void SerializeResumeLayout(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object control)
404
private void SerializeSuspendLayout(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object control)
413
private void SerializeZOrder(IDesignerSerializationManager manager,
CodeStatementCollection
statements, Control control)
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
47
if (codeObject is
CodeStatementCollection
codeStatementCollection)
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
24
CodeStatementCollection
statements = [];
System.Windows.Forms.Design.Tests (12)
CodeDomHelpers.cs (2)
10
public static void AssertEqualCodeStatementCollection(
CodeStatementCollection
expected,
CodeStatementCollection
actual)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (9)
153
]), Assert.IsType<
CodeStatementCollection
>(valueState1.Code));
167
]), Assert.IsType<
CodeStatementCollection
>(valueState2.Code));
255
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
357
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
402
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
448
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
494
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
543
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
592
]), Assert.IsType<
CodeStatementCollection
>(valueState.Code));
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (1)
104
result.Should().BeOfType<
CodeStatementCollection
>();