diff --git a/X10D/src/Core/Extensions.cs b/X10D/src/Core/Extensions.cs index 773217f..d2cbc49 100644 --- a/X10D/src/Core/Extensions.cs +++ b/X10D/src/Core/Extensions.cs @@ -1,4 +1,4 @@ -namespace X10D.Core; +namespace X10D.Core; /// /// Extension methods which apply to all types. @@ -13,7 +13,7 @@ public static class Extensions /// /// An array of type with length 1, whose only element is . /// - public static T[] AsArray(this T value) + public static T?[] AsArray(this T? value) { return new[] {value}; } @@ -26,7 +26,7 @@ public static class Extensions /// /// An enumerable collection of type , whose only element is . /// - public static IEnumerable AsEnumerable(this T value) + public static IEnumerable AsEnumerable(this T? value) { yield return value; }