-
Notifications
You must be signed in to change notification settings - Fork 1
Pact Logging LoggingExtensions GetDifference T (T T bool)
welshronaldo edited this page May 30, 2022
·
6 revisions
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);
amended
T
original
T
filtered
System.Boolean
By default, this is true, and removes any properties including "password" or "token" in their names
System.Collections.Generic.Dictionary<System.String,System.Object>