///<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()); } }
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); } }
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); }
public DeprecatedType(System.Type inputType, GetVal getVal, SetVal setVal) { objectType = inputType; this.getVal = getVal; this.setVal = setVal; }
protected override void OnStop() { GetVal.Stop(); eLog("Detiene el Aplicativo AppPeticiones de Inicio Manual"); }
protected override void OnStart(string[] args) { GetVal.Start(); eLog("Inicia el Aplicativo AppPeticiones de Inicio Manual"); }