Exemplo n.º 1
0
        public static TupleDataFactory AddValueExcept <T>(this TupleDataFactory factory, int index, int except, T value)
        {
            if (typeof(T) != typeof(Unused) && index != except)
            {
                factory = factory.AddValue(value);
            }

            return(factory);
        }
Exemplo n.º 2
0
        public static TupleDataFactory AddValueBefore <TNew, T>(this TupleDataFactory factory, int index, int before, T value)
        {
            if (index == before)
            {
                factory = factory.AddValue(default(TNew));
            }

            if (typeof(T) != typeof(Unused))
            {
                factory = factory.AddValue(value);
            }

            return(factory);
        }
Exemplo n.º 3
0
 public TupleDataFactory RemoveValue(int index, TupleDataFactory factory) =>
 throw new NotSupportedException();
Exemplo n.º 4
0
 public TupleDataFactory AddValue <T>(int index, TupleDataFactory factory) =>
 throw new NotSupportedException();