예제 #1
0
        public void Run()
        {
            var props = new Dictionary <string, Type>();

            props["Id"]    = typeof(long);
            props["Name"]  = typeof(string);
            props["Money"] = typeof(decimal);

            var company = DynamicClass.New("Company", props);
            //company<int>["Id"] = 3;
            //company["Name"] = "Miodex";
            //company["Money"] = 15151.4548474;

            //var d = company["Name"].toString();

            var Company = new DynamicClass();
        }
예제 #2
0
 public DynamicInstance(DynamicClass schema)
 {
     Schema = schema;
 }