Class PropertyMerger
- Namespace
- ChartTools.Tools
- Assembly
- ChartTools.dll
Provides methods to merge properties between two instances
public static class PropertyMerger
- Inheritance
-
PropertyMerger
- Inherited Members
Methods
Merge<T>(T, bool, bool, params T[])
Replaces the property values of an instance with the first non-null equivalent from other instances.
public static void Merge<T>(this T current, bool overwriteNonNull, bool deepMerge, params T[] newValues)
Parameters
current
TItem to assign the property values to
overwriteNonNull
boolIf false, only replaces property values that are null in the original instance.
deepMerge
boolnewValues
T[]Items to pull new property values from in order of priority
Type Parameters
T
Remarks
If overwriteNonNull is false, only replaces property values that are null in the original instance.