public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); FinallyStatements.AddRange(finallyStatements); }
public void AddRange(CodeCatchClause[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; i < value.Length; i++) { Add(value[i]); } }
// // Methods // public int Add(CodeCatchClause value) { return List.Add(value); }
public CodeCatchClauseCollection(CodeCatchClause[] value) { AddRange(value); }
public void Remove(CodeCatchClause value) { List.Remove(value); }
public void Insert(int index, CodeCatchClause value) { List.Insert(index, value); }
public int IndexOf(CodeCatchClause value) { return List.IndexOf(value); }
public void CopyTo(CodeCatchClause[] array, int index) { List.CopyTo(array, index); }
public bool Contains(CodeCatchClause value) { return List.Contains(value); }