Esempio n. 1
0
        private static Feature.Switch.IKnowStateOf <TFeature> InContextOf <TFeature, TContext>(this Feature.Switch.IKnowStateOf <TFeature> This, TContext instance)
            where TFeature : IFeature
            where TContext : IContext
        {
            var type = This.GetType().GetGenericArguments().First();

            return(Feature.Switch.For <TFeature>(type).With(FeatureConfiguration.For(instance)));
        }