Commits

Anonymous committed 86fd17f

added sample of passing dictionary into ctor

Comments (0)

Files changed (1)

Dynamic/CSharpDynamic/DynamicFeaturesSamples.Tests/Dynamic_customer_tests.cs

 
         Customer GetCustomer()
         {
-            return new Customer(_additionalData);
+            //return new Customer(_additionalData);
+
+            // alternatively...
+            return new Customer(new Dictionary<string, object>
+                                    {
+                                        { "Comments", "Some comments..." }, 
+                                        { "NumberOfDependents", 3 }
+                                    });
         }
 
         void properties_are_exposed()