From fd1b7525d3a1e673d020c74dd9dcba2ba80de614 Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Fri, 29 Nov 2024 21:43:17 +0000 Subject: [PATCH] Fixes --- Toolkit.Foundation/Activate.cs | 4 ++-- Toolkit.Foundation/ActivateEventArgs.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Toolkit.Foundation/Activate.cs b/Toolkit.Foundation/Activate.cs index f1ec74b..cc0c2c6 100644 --- a/Toolkit.Foundation/Activate.cs +++ b/Toolkit.Foundation/Activate.cs @@ -2,11 +2,11 @@ public record Activate { - public static ActivateEventArgs As(TValue value) => new(value); + public static ActivateEventArgs As(TValue? value) => new(value); public static ActivateEventArgs As() where TValue : new() => new(new TValue()); - public static ActivateEventArgs As(TValue value) => new(value); + public static ActivateEventArgs As(TValue? value) => new(value); public static ActivateEventArgs As() where TValue : new() => new(new TValue()); } diff --git a/Toolkit.Foundation/ActivateEventArgs.cs b/Toolkit.Foundation/ActivateEventArgs.cs index af58f68..d9e25c4 100644 --- a/Toolkit.Foundation/ActivateEventArgs.cs +++ b/Toolkit.Foundation/ActivateEventArgs.cs @@ -4,7 +4,7 @@ public record ActivateEventArgs { public TValue? Value { get; } - public ActivateEventArgs(TValue value) + public ActivateEventArgs(TValue? value) { Value = value; } @@ -19,7 +19,7 @@ public record ActivateEventArgs { public TValue? Value { get; } - public ActivateEventArgs(TValue value) + public ActivateEventArgs(TValue? value) { Value = value; }