Table of Contents

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 T

Item to assign the property values to

overwriteNonNull bool

If false, only replaces property values that are null in the original instance.

deepMerge bool
newValues 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.