Esempio n. 1
0
        ///<inheritdoc/>
        public override string ToString()
        {
            return($"{(LowerBound.IsClosed() ? "[" : "(")}{GetVal(LowerBound)}, " +
                   $"{GetVal(UpperBound)}{(UpperBound.IsClosed() ? "]" : ")")}");

            string GetVal(Bound <T> bound)
            {
                if (bound.IsNegativeInfinity())
                {
                    return("-∞");
                }

                if (bound.IsPositiveInfinity())
                {
                    return("∞");
                }

                return(((T)bound).ToString());
            }
        }
Esempio n. 2
0
 private static object TryGetValue(string Value, XmlNode node, GetVal getvalueFunction)
 {
     try
     {
         var val = getvalueFunction();
         return(val);
     }
     catch (Exception e)
     {
         throw new Exception(Value + " parameter is not correctly populated in : \n" + GetFullyQualifiedName(node) + "\n" + e.Message + "\n" + node.OuterXml);
     }
 }
Esempio n. 3
0
        private static int joinEnumerables <T>(StringBuilder sb, IEnumerable <T> ents, string name, GetVal <T> gv)
        {
            var cnt = 0;

            joinJqlGroups(sb, ents, () => { foreach (var ent in ents)
                                            {
                                                sb.Append(cnt++ == 0 ? "" : " or ").Append(name + " = \"").Append(gv(ent)).Append('"');
                                            }
                          });
            return(cnt);
        }
Esempio n. 4
0
 public DeprecatedType(System.Type inputType, GetVal getVal, SetVal setVal)
 {
     objectType  = inputType;
     this.getVal = getVal;
     this.setVal = setVal;
 }
Esempio n. 5
0
 protected override void OnStop()
 {
     GetVal.Stop();
     eLog("Detiene el Aplicativo AppPeticiones de Inicio Manual");
 }
Esempio n. 6
0
 protected override void OnStart(string[] args)
 {
     GetVal.Start();
     eLog("Inicia el Aplicativo AppPeticiones de Inicio Manual");
 }