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)); }
static MFullArray() { var type = MType.FromCliType(typeof(TScalar)); Contract.Assert(type != null && type.IsPrimitive); repr = new MRepr(type, MStructuralClass.FullArray); }