msgraph-sdk-dotnet
msgraph-sdk-dotnet copied to clipboard
Make it easier to lookup changed properties with DeltaResponseHandler
Change depends on https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/pull/58 getting published to NuGet.
Add an extension method on entities that support delta query to provide a HashSet of changed properties.
Returns a HashSet where every value is not case sensitive.
var changes = myevent.GetChangeHashSet(); // this should make the first
if (changes.Contains(nameof(myevent.Subject)))
{
// myevent.Subject has been updated, so if its value is null,
// you know it has been changed to null.
}