コード例 #1
0
            public __Mixins(MultipleMixinsMethodPrioritySpec host)
            {
                _MixinOneMixin = new Lazy <MixinOne>(
                    () => new DefaultMixinActivator().CreateInstance <MixinOne>());

                // _MixinTwoMixin = new Lazy<MixinTwo>(
                //     () => new DefaultMixinActivator().CreateInstance<MixinTwo>());

                _MixinThreeMixin = new Lazy <MixinThreeWrapper>(
                    () => new DefaultMixinActivator().CreateInstance <MixinThreeWrapper>(this));

                _MixinFourMixin = new Lazy <MixinFourWrapper>(
                    () => new DefaultMixinActivator().CreateInstance <MixinFourWrapper>(this));

                _MixinFiveMixin = new Lazy <MixinFiveWrapper>(
                    () => new DefaultMixinActivator().CreateInstance <MixinFiveWrapper>(this));
            }
コード例 #2
0
            public __Mixins(MultipleMixinsMethodPrioritySpec host)
            {
                _MixinOneMixin = new Lazy<MixinOne>(
                    () => new DefaultMixinActivator().CreateInstance<MixinOne>());

                // _MixinTwoMixin = new Lazy<MixinTwo>(
                //     () => new DefaultMixinActivator().CreateInstance<MixinTwo>());

                _MixinThreeMixin = new Lazy<MixinThreeWrapper>(
                    () => new DefaultMixinActivator().CreateInstance<MixinThreeWrapper>(this));

                _MixinFourMixin = new Lazy<MixinFourWrapper>(
                    () => new DefaultMixinActivator().CreateInstance<MixinFourWrapper>(this));

                _MixinFiveMixin = new Lazy<MixinFiveWrapper>(
                    () => new DefaultMixinActivator().CreateInstance<MixinFiveWrapper>(this));
            }