public virtual IEnumerable <TNew> AllOf(TGroup group) { return(RealObject .AllOf(group) .OfType <TNew>() .Where(_predicate)); }
virtual public string Get(string name) { var parameter = RealObject .AllOf(name) .FirstOrDefault(); if (parameter != null) { return(parameter.Value); } return(default(string)); }
virtual public void Set(string name, IEnumerable <string> values) { var parameter = RealObject .AllOf(name) .FirstOrDefault(); if (parameter == null) { RealObject.Add(new CalendarParameter(name, values)); } else { parameter.SetValue(values); } }
/// <summary> /// Sets the specified name. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> public virtual void Set(string name, string value) { ICalendarParameter parameter = RealObject .AllOf(name) .FirstOrDefault( ); if (parameter == null) { RealObject.Add(new CalendarParameter(name, value)); } else { parameter.SetValue(value); } }