public static capex.util.DynamicModule forFile(cape.LoggingContext ctx, cape.File file)
        {
            var v = new capex.util.DynamicModule();

            if (v.loadFile(ctx, file) == false)
            {
                v = null;
            }
            return(v);
        }
        public static capex.util.DynamicModule forObject(cape.LoggingContext ctx, object oo)
        {
            if (!(oo != null))
            {
                return(null);
            }
            System.Reflection.Assembly asm = null;
            var type = oo.GetType();

            if (type != null)
            {
                asm = System.Reflection.IntrospectionExtensions.GetTypeInfo(type).Assembly;
            }
            if (!(asm != null))
            {
                return(null);
            }
            var v = new capex.util.DynamicModule();

            v.setAssembly(asm);
            return(v);
        }