/// <summary> /// Filters the parameters, returning a set without the specified type. /// </summary> /// <param name="type"> the type to remove </param> /// <returns> the filtered calculation parameters </returns> public CalculationParameters without(Type type) { if (!parameters.containsKey(type)) { return(this); } IDictionary <Type, CalculationParameter> map = new Dictionary <Type, CalculationParameter>(parameters); map.Remove(type); return(of(map)); }
//------------------------------------------------------------------------- /// <summary> /// Checks if this INI file contains the specified section. /// </summary> /// <param name="name"> the section name </param> /// <returns> true if the section exists </returns> public bool contains(string name) { ArgChecker.notNull(name, "name"); return(sectionMap.containsKey(name)); }
/// <summary> /// Checks if the header is known. /// <para> /// Matching is case insensitive. /// /// </para> /// </summary> /// <param name="header"> the column header to match </param> /// <returns> true if the header is known </returns> public bool containsHeader(string header) { return(searchHeaders.containsKey(header.ToLower(Locale.ENGLISH))); }
//------------------------------------------------------------------------- public override bool containsValue <T1>(MarketDataId <T1> id) { // overridden for performance return(values.containsKey(id)); }