mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
71 lines
1.6 KiB
C#
Executable File
71 lines
1.6 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeTryCatchFinallyStatement Class implementation
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
namespace System.CodeDom {
|
|
|
|
public class CodeTryCatchFinallyStatement : CodeStatement {
|
|
CodeStatementCollection tryStatements, finallyStatements;
|
|
CodeCatchClauseCollection catchClauses;
|
|
|
|
public CodeTryCatchFinallyStatement () {}
|
|
|
|
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
|
|
CodeCatchClause [] catchClauses)
|
|
{
|
|
this.tryStatements = new CodeStatementCollection ();
|
|
this.catchClauses = new CodeCatchClauseCollection ();
|
|
|
|
this.tryStatements.AddRange (tryStatements);
|
|
this.catchClauses.AddRange (catchClauses);
|
|
}
|
|
|
|
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
|
|
CodeCatchClause [] catchClauses,
|
|
CodeStatement [] finallyStatements)
|
|
{
|
|
this.tryStatements = new CodeStatementCollection ();
|
|
this.catchClauses = new CodeCatchClauseCollection ();
|
|
this.finallyStatements = new CodeStatementCollection ();
|
|
|
|
this.tryStatements.AddRange (tryStatements);
|
|
this.catchClauses.AddRange (catchClauses);
|
|
this.finallyStatements.AddRange (finallyStatements);
|
|
}
|
|
|
|
public CodeStatementCollection FinallyStatements{
|
|
get {
|
|
return finallyStatements;
|
|
}
|
|
|
|
set {
|
|
finallyStatements = value;
|
|
}
|
|
}
|
|
|
|
public CodeStatementCollection TryStatements {
|
|
get {
|
|
return tryStatements;
|
|
}
|
|
|
|
set {
|
|
tryStatements = value;
|
|
}
|
|
}
|
|
public CodeCatchClauseCollection CatchClauses {
|
|
get {
|
|
return catchClauses;
|
|
}
|
|
|
|
set {
|
|
catchClauses = value;
|
|
}
|
|
}
|
|
}
|
|
}
|