Пример #1
0
        static void TestPrototype()
        {
            var           p            = new SomeType();
            CustomProduct product      = new CustomProduct(p);
            CustomProduct productClone = product.Clone();

            (productClone.obj as SomeType).Name = "New name";
            Console.WriteLine(product.ToString());
            Console.WriteLine(productClone.ToString());
        }
 public TestModelBuilder WithSomeTypeTest(SomeType value)
 {
     _someTypeTest = value;
     return(this);
 }