Browse Source
Merge pull request #5970 from MarchingCube/memory-fixes
Avoid boxing nullable values in BindingValue.
pull/5980/head
Dariusz Komosiński
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/Avalonia.Base/Data/BindingValue.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
using Avalonia.Utilities; |
|
|
|
|
|
|
|
@ -358,6 +359,7 @@ namespace Avalonia.Data |
|
|
|
e); |
|
|
|
} |
|
|
|
|
|
|
|
[Conditional("DEBUG")] |
|
|
|
private static void ValidateValue([AllowNull] T value) |
|
|
|
{ |
|
|
|
if (value is UnsetValueType) |
|
|
|
|