/*----------------------------------------------------------------------------------------*/ /// <summary> /// Inherits any of the parameters in the specified collection that are marked for inheritance. /// </summary> /// <param name="parameters">The parameters to consider for inheritance.</param> public void InheritFrom(IParameterCollection parameters) { parameters.GetTypes().Each(t => AddRange(t, parameters.GetAll(t).Where(p => p.ShouldInherit))); }
/*----------------------------------------------------------------------------------------*/ IList <T> ITypedCollection <string, IParameter> .GetAll <T>() { return(_collection.GetAll <T>()); }
/*----------------------------------------------------------------------------------------*/ #region Public Methods /// <summary> /// Copies the parameters from the specified collection. /// </summary> /// <param name="parameters">The collection of parameters to copy from.</param> public void CopyFrom(IParameterCollection parameters) { parameters.GetTypes().Each(t => AddRange(t, parameters.GetAll(t))); }