public static CodeCatchClauseCollection Clone(this CodeCatchClauseCollection collection)
{
if (collection == null) return null;
CodeCatchClauseCollection c = new CodeCatchClauseCollection();
foreach (CodeCatchClause clause in collection)
c.Add(clause.Clone());
return c;
}