private CodeCatchClause GenerateClause(ExceptHandler eh)
{
var ex = eh.type as Identifier;
if (ex != null)
{
return gen.CatchClause(
null,
new CodeTypeReference(ex.Name),
() => eh.body.Accept(this));
}
else
{
return gen.CatchClause(
null,
null,
() => eh.body.Accept(this));
}
throw new NotImplementedException();
}