Exemple #1
0
        public static FieldUnd <UndValue> Values(params object[] values)
        {
            var fu = new FieldUnd <UndValue>();

            if (values != null)
            {
                fu.und = values.Select(x => und.Value(x)).ToList();
            }

            return(fu);

            //try
            //{
            //    return new FieldUnd<UndValue> { und = values.Select(x => und.Value(x)).ToList() };
            //}
            //catch (Exception ex)
            //{
            //    var msg = "Error at  Values(params object[] values)";
            //    if (values == null)
            //        msg += L.f + "values == NULL";
            //    else
            //    {
            //        msg += L.f + $"values.Length:  {values.Length}";
            //        for (int i = 0; i < values.Length; i++)
            //            msg += L.f + $"values[{i}]:  {values[i]}";
            //    }
            //    throw new ArgumentException(msg, ex);
            //}
        }
Exemple #2
0
        public static FieldUnd <Und2Values> Value1_2(object fieldValue1, object fieldValue2)
        {
            var ret = new FieldUnd <Und2Values>();

            ret.und.Add(new Und2Values
            {
                value  = fieldValue1,
                value2 = fieldValue2
            });

            return(ret);
        }