public static string csharpCode(this IMethod iMethod) { var @namespace = iMethod.@namespace(); var typeName = iMethod.typeName(); var ambiance = new CSharpAmbience(); var csharpCode = ("\t\t{0}".line() + "\t\t{{".line() + "\t\t\tthrow new System.Exception(\"O2 Auto Generated Method\");".line() + "\t\t}}".line()) .format(ambiance.Convert(iMethod)); if (typeName.valid()) { csharpCode = ("\tclass {0}".line() + "\t{{".line() + "{1}".line() + "\t}}".line()) .format(typeName, csharpCode); } if (@namespace.valid()) { csharpCode = ("namespace {0}".line() + "{{".line() + "{1}".line() + "}}".line()) .format(@namespace, csharpCode); } //if (@namespace.valid()); return(csharpCode); }