fix: update conditional compilation symbols for .NET version handling (#820)

This commit is contained in:
Dong Bin
2025-11-12 15:43:27 +08:00
committed by GitHub
parent 0ab084b198
commit 26f195871b
2 changed files with 8 additions and 13 deletions

View File

@@ -9,11 +9,9 @@ public class DrawerCloseTestPopupControlVM : IDialogContext
RequestClose?.Invoke(this, Result);
}
#if NET8_0
#if NET8_0_OR_GREATER
public int Result { get; } = Random.Shared.Next();
#endif
#if NETSTANDARD2_0
#else
private static Random r = new Random();
public int Result { get; } = r.Next();
#endif