mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
74 lines
1.7 KiB
C#
Executable File
74 lines
1.7 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeTryCatchFinallyStatement Class implementation
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
// Daniel Stodden ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.CodeDom
|
|
{
|
|
[Serializable]
|
|
[ClassInterface(ClassInterfaceType.AutoDispatch)]
|
|
[ComVisible(true)]
|
|
public class CodeTryCatchFinallyStatement
|
|
: CodeStatement
|
|
{
|
|
private CodeStatementCollection tryStatements, finallyStatements;
|
|
private CodeCatchClauseCollection catchClauses;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeTryCatchFinallyStatement ()
|
|
{
|
|
}
|
|
|
|
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
|
|
CodeCatchClause [] catchClauses)
|
|
{
|
|
TryStatements.AddRange( tryStatements );
|
|
CatchClauses.AddRange( catchClauses );
|
|
}
|
|
|
|
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
|
|
CodeCatchClause [] catchClauses,
|
|
CodeStatement [] finallyStatements)
|
|
{
|
|
TryStatements.AddRange( tryStatements );
|
|
CatchClauses.AddRange( catchClauses );
|
|
FinallyStatements.AddRange( finallyStatements );
|
|
}
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public CodeStatementCollection FinallyStatements{
|
|
get {
|
|
if ( finallyStatements == null )
|
|
finallyStatements = new CodeStatementCollection();
|
|
return finallyStatements;
|
|
}
|
|
}
|
|
|
|
public CodeStatementCollection TryStatements {
|
|
get {
|
|
if ( tryStatements == null )
|
|
tryStatements = new CodeStatementCollection();
|
|
return tryStatements;
|
|
}
|
|
}
|
|
public CodeCatchClauseCollection CatchClauses {
|
|
get {
|
|
if ( catchClauses == null )
|
|
catchClauses = new CodeCatchClauseCollection();
|
|
return catchClauses;
|
|
}
|
|
}
|
|
}
|
|
}
|