Esempio n. 1
0
 /*----------------------------------------------------------------------------------------*/
 /// <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)));
 }
Esempio n. 2
0
 /*----------------------------------------------------------------------------------------*/
 IList <T> ITypedCollection <string, IParameter> .GetAll <T>()
 {
     return(_collection.GetAll <T>());
 }
Esempio n. 3
0
 /*----------------------------------------------------------------------------------------*/
 #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)));
 }