Skip to content

Pact Logging LoggingExtensions GetDifference T (T T bool)

welshronaldo edited this page May 30, 2022 · 6 revisions

LoggingExtensions.GetDifference<T>(T, T, bool) Method

Retrieves a dictionary of all properties between the two objects and, where values differ, introduces a prefixed key for the original value

public static System.Collections.Generic.Dictionary<string,object> GetDifference<T>(this T amended, T original, bool filtered=true);

Type parameters

T

Parameters

amended T

original T

filtered System.Boolean
By default, this is true, and removes any properties including "password" or "token" in their names

Returns

System.Collections.Generic.Dictionary<System.String,System.Object>

Clone this wiki locally