Exemple #1
0
 /// <summary>
 /// Merges all those properties of other class into this one, that meet the filter condition.
 /// </summary>
 /// <param name="other">Other class whose properties will be merged into this class.</param>
 /// <param name="filter">Filter (optional), defines a subset of other's properties.</param>
 public void MergeProperties(ClassCodeElement other, Predicate <GenericPropertyCodeElement> filter = null)
 {
     CodeElementUtils.MergeElements <GenericPropertyCodeElement> (Properties, other.Properties, filter);
 }
Exemple #2
0
 /// <summary>
 /// Merges all those fields of other class into this one, that meet the filter condition.
 /// </summary>
 /// <param name="other">Other class whose fields will be merged into this class.</param>
 /// <param name="filter">Filter (optional), defines a subset of other's fields.</param>
 public void MergeFields(ClassCodeElement other, Predicate <GenericFieldCodeElement> filter = null)
 {
     CodeElementUtils.MergeElements <GenericFieldCodeElement> (Fields, other.Fields, filter);
 }
Exemple #3
0
 /// <summary>
 /// Merges all those methods of other class into this one, that meet the filter condition.
 /// </summary>
 /// <param name="other">Other class whose methods will be merged into this class.</param>
 /// <param name="filter">Filter (optional), defines a subset of other's methods.</param>
 public void MergeMethods(ClassCodeElement other, Predicate <GenericMethodCodeElement> filter = null)
 {
     CodeElementUtils.MergeElements <GenericMethodCodeElement> (Methods, other.Methods, filter);
 }