Exemple #1
0
            public __Mixins(NonParameterlessConstructorMixinSpec host)
            {
                _NonParamaterlessConstructorMixin = new Lazy <NonParameterlessConstructorMixin>(
                    () =>
                    //Important: Explicit cast so that Target can implement methods explicitly
                    ((INonParameterlessConstructorMixinRequirements)host)
                    .InitializeNonParameterlessConstructorMixin());

                _NonParameterlessProtectedConstrutorMixin = new Lazy <NonParameterlessProtectedConstructorMixinWrapper>(
                    () =>
                    ((INonParameterlessProtectedConstrutorMixinRequirements)host)
                    .InitializeNonParameterlessProtectedConstrutorMixin());
            }
            public __Mixins(NonParameterlessConstructorMixinSpec host)
            {
                _NonParamaterlessConstructorMixin = new Lazy<NonParameterlessConstructorMixin>(
                    () =>
                        //Important: Explicit cast so that Target can implement methods explicitly
                        ((INonParameterlessConstructorMixinRequirements)host)
                            .InitializeNonParameterlessConstructorMixin());

                _NonParameterlessProtectedConstrutorMixin = new Lazy<NonParameterlessProtectedConstructorMixinWrapper>(
                    () =>
                        ((INonParameterlessProtectedConstrutorMixinRequirements)host)
                            .InitializeNonParameterlessProtectedConstrutorMixin());
            }
Exemple #3
0
 protected override void Establish_context()
 {
     _spec = new NonParameterlessConstructorMixinSpec("hello world");
 }
 protected override void Establish_context()
 {
     _spec = new NonParameterlessConstructorMixinSpec("hello world");
 }