Exemplo n.º 1
0
        public void SampleCreateExampleOfComplexRequiredGenericClass()
        {
            var r1 = new RequiredClass <string>(_requiredString);

            // So if I want to create ComplexRequiredGenericClass with Business Value , it needs to follow these steps
            var r2 = new ComplexRequiredGenericClass <RequiredClass <string> >(r1);

            // Business value for ComplexMethod
            r2.ComplexMethod(r1, "Hello World");
            r2.ComplexMethod(r1, "HelloXXTW World");
            r2.ComplexMethod(r1.T1Type.T1Type.T1Type, "HelloXXXX World");
        }
Exemplo n.º 2
0
 public ComplexRequiredGenericClass2(IRequired <T1> required, IRequired <T1> required2, ComplexRequiredGenericClass <RequiredClass <string> > complexRequiredGenericClass)
 {
     _requiredToString            = required.ToString();
     _complexRequiredGenericClass = complexRequiredGenericClass;
 }