Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ public virtual void CheckMutuallyExclusive<T, TU>(string name1, string name2, T
{
return;
}

// For some reason GetField("MinValue") sometimes returns 'null' when the obj is an int
// Casting the object to an int and directly checking for MinValue works though.
if (obj1 is int c && c == int.MinValue)
{
return;
}

// If the object is MinValue instead of its default, consider
// that to be unassigned.

Expand Down