コード例 #1
0
 public Specifications(ISelect <Type, TypeInfo> metadata)
     : base(metadata.Select(GenericInterfaceImplementations.Default)
            .Select(x => x.Condition.ToDelegate())
            .Then()
            .Activate <OneItemIs <Type> >()
            .Select(metadata.Select(GenericInterfaces.Default)
                    .Open()
                    .Select)
            .Select(x => x.ToCondition())
            .Get())
 {
 }
コード例 #2
0
        public string Select()
        {
            var model = _model.CopyInstance();

            model.AddIgnores(_handler.Members <SelectIgnoreAttribute>());
            return(_template.Select(model));
        }
コード例 #3
0
 public Benchmarks(ISelect <string, string> subject)
     : this(subject, subject.Select(x => x),
            subject.Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x),
            subject.Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x)
            .Select(x => x))
 {
 }
コード例 #4
0
        public override IAction Select(IAIContext context)
        {
            var action = _connectedSelector.Select(context);

            if (action == null)
            {
                this.parent.parent.parent.PostExecute();
            }

            return(action);
        }
コード例 #5
0
            public IEnumerable <object> Select(Type type, IPolicySet registration)
            {
                object originalConstructor =
                    OriginalConstructorSelectorPolicy.Select(type, registration)
                    .First();

                switch (originalConstructor)
                {
                case ConstructorInfo info:
                    return(new [] { FromConstructorInfo(info, InterceptingType) });

                case SelectedConstructor selectedConstructor:
                    return(new [] { FromSelectedConstructor(selectedConstructor, InterceptingType) });

                case MethodBase <ConstructorInfo> methodBaseMember:
                    return(new [] { FromMethodBaseMember(methodBaseMember, InterceptingType) });
                }

                throw new InvalidOperationException("Unknown type");
            }
コード例 #6
0
ファイル: Model.Selection.cs プロジェクト: lanicon/Super.NET
 public static IConditional <TIn, TTo> Select <TIn, TFrom, TTo>(this ISelect <TIn, TFrom> @this,
                                                                IConditional <TFrom, TTo> select)
 => new Conditional <TIn, TTo>(@this.Select(select.Condition).Get, @this.Select(select.Get).Get);
コード例 #7
0
 public static ISelect <_, T[]> Open <_, T>(this ISelect <_, Array <T> > @this) => @this.Select(x => x.Open());
コード例 #8
0
 public static ISelect <_, T[]> Open <_, T>(this ISelect <_, IEnumerable <T> > @this) => @this.Select(x => x.Open());
コード例 #9
0
 protected InstanceMetadata(ISelect <TIn, ICustomAttributeProvider> select,
                            IConditional <ICustomAttributeProvider, TOut> value)
     : base(select.Select(value.Condition).Get, select.Select(value.Get).Get)
 {
 }
コード例 #10
0
 public static Query <_, T> Query <_, T>(this ISelect <_, ICollection <T> > @this)
 => new Query <_, T>(@this.Select(CollectionSelection <T> .Default));
コード例 #11
0
 public IEnumerable <T> Select(string whereClause = null, string joinDirection = "inner", bool isDistinct = false, int top = -1)
 {
     return(_selectOperations.Select(whereClause, joinDirection, isDistinct, top));
 }
コード例 #12
0
 public AddGroupElementCommand(IGroupCollection <T> collection, ISelect <T, GroupName> name)
     : this(name.Select(collection).Select(ItemCommands <T> .Default))
 {
 }
コード例 #13
0
 public void Bunkatu(int count)
 {
     SelectType.Select(Cubes);
     SplitType.Split();
 }
コード例 #14
0
ファイル: ComponentLocator.cs プロジェクト: lanicon/Super.NET
 public ComponentLocator(ISelect <Type, Type> type)
     : base(type.Select(Activator.Default.Assigned()).Then().CastForResult <T>().Get())
 {
 }
コード例 #15
0
ファイル: Model.Selection.cs プロジェクト: lanicon/Super.NET
 public static ISelect <TIn, TTo> Select <TIn, TFrom, TTo>(this ISelect <TIn, TFrom> @this,
                                                           ISelect <TFrom, TTo> select) => @this.Select(select.Get);
コード例 #16
0
ファイル: MainWindow.xaml.cs プロジェクト: gogowaten/2020WPF
 public void Execute()
 {
     Ee.Select();
     Ff.Split();
 }
コード例 #17
0
 protected ApplicationContexts(ISelect <TIn, IServices> services)
     : base(services.Select(ServiceSelector <TContext> .Default).Then().Cast <IApplicationContext <TIn> >().Get())
 {
 }
コード例 #18
0
 public static Query <_, T> Query <_, T>(this ISelect <_, IEnumerable <T> > @this)
 => new Query <_, T>(@this.Select(Iterate <T> .Default));