Exemplo n.º 1
0
        private static Variable Declare <T>(string name, bool initOnly = false)
        {
            var repr = MRepr.FromCliType(typeof(T));

            name += "_" + repr.ToString().Replace(" ", "");
            return(new Variable(name, repr, initOnly));
        }
Exemplo n.º 2
0
        static MFullArray()
        {
            var type = MType.FromCliType(typeof(TScalar));

            Contract.Assert(type != null && type.IsPrimitive);
            repr = new MRepr(type, MStructuralClass.FullArray);
        }