TriAxis.RunSharp.CodeGen.CodeGen C# (CSharp) Method

CodeGen() public method

public CodeGen ( ICodeGenContext context, bool isOwner = true ) : System
context ICodeGenContext
isOwner bool
return System
        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();
		}