public CodeGen(ICodeGenContext context, bool isOwner = true)
{
_isOwner = isOwner;
Context = context;
#if !PHONE8
_cg = context as ConstructorGen;
if (_cg != null && _cg.IsStatic)
// #14 - cg is relevant for instance constructors - it wreaks havoc in a static constructor
_cg = null;
#endif
IL = context.GetILGenerator();
}