1 type derived from CodeStatementCollection
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2818
internal class OrderedCodeStatementCollection :
CodeStatementCollection
11 instantiations of CodeStatementCollection
System.CodeDom (9)
System\CodeDom\CodeCatchClause.cs (1)
43
public CodeStatementCollection Statements => field ??= 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)
47
public CodeStatementCollection GetStatements { get; } = new
CodeStatementCollection
();
49
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)
2388
statements = new
CodeStatementCollection
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (1)
44
return new
CodeStatementCollection
();
115 references to CodeStatementCollection
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
92
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeStatementCollection
))]
System.CodeDom (22)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
624
private void GenerateStatements(
CodeStatementCollection
stmts)
946
CodeStatementCollection
falseStatements = e.FalseStatements;
1000
CodeStatementCollection
finallyStatements = e.FinallyStatements;
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
1293
CodeStatementCollection
falseStatements = e.FalseStatements;
1322
CodeStatementCollection
finallyStatements = e.FinallyStatements;
2590
private void GenerateVBStatements(
CodeStatementCollection
stms)
System\CodeDom\CodeCatchClause.cs (1)
43
public
CodeStatementCollection
Statements => field ??= 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();
27
public
CodeStatementCollection
Statements
System\CodeDom\CodeMemberProperty.cs (2)
47
public
CodeStatementCollection
GetStatements { get; } = new CodeStatementCollection();
49
public
CodeStatementCollection
SetStatements { get; } = new CodeStatementCollection();
System\CodeDom\CodeStatementCollection.cs (2)
12
public CodeStatementCollection(
CodeStatementCollection
value)
42
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)
951
protected void GenerateStatements(
CodeStatementCollection
stmts)
System\CodeDom\Compiler\CodeValidator.cs (3)
462
private void ValidateStatements(
CodeStatementCollection
stmts)
504
CodeStatementCollection
falseStatements = e.FalseStatements;
525
CodeStatementCollection
finallyStatements = e.FinallyStatements;
System.Management (4)
System\Management\WMIGenerator.cs (4)
5588
private void GenerateCodeForRefAndDateTimeTypes(CodeIndexerExpression prop, bool bArray,
CodeStatementCollection
statColl, string strType, CodeVariableReferenceExpression varToAssign, bool bIsValueProprequired)
5776
private void AddPropertySet(CodeIndexerExpression prop, bool bArray,
CodeStatementCollection
statColl, string strType, CodeVariableReferenceExpression varValue)
6728
private static void DateTimeConversionFunctionHelper(
CodeStatementCollection
cmmdt,
7651
private static void ToTimeSpanHelper(int start, int numOfCharacters, string strVarToAssign,
CodeStatementCollection
statCol)
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)
2097
protected void SerializeEvent(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, EventDescriptor descriptor)
2127
protected void SerializeEvents(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, params Attribute[]? filter)
2139
protected void SerializeProperties(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, Attribute[]? filter)
2191
protected void SerializePropertiesToResources(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, Attribute[]? filter)
2243
protected void SerializeProperty(IDesignerSerializationManager manager,
CodeStatementCollection
statements, object value, PropertyDescriptor propertyToSerialize)
2339
CodeStatementCollection
? saveStatements = null;
2383
CodeStatementCollection
? statements = result as
CodeStatementCollection
;
2398
saveStatements ??= manager.GetContext<
CodeStatementCollection
>();
2541
CodeStatementCollection
? saveStatements = null;
2599
internal static void FillStatementTable(IDesignerSerializationManager manager, IDictionary table,
CodeStatementCollection
statements)
2604
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)
25
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 = [];