From e75f58a5593ca96f1c21810d5232519ba3f325df Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Thu, 12 Dec 2019 22:31:20 -0600 Subject: [PATCH] Fixed Nullable checks for .NET 3 --- IPA.Loader/Config/Stores/GeneratedStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Loader/Config/Stores/GeneratedStore.cs b/IPA.Loader/Config/Stores/GeneratedStore.cs index dc212a1e..cbc87a24 100644 --- a/IPA.Loader/Config/Stores/GeneratedStore.cs +++ b/IPA.Loader/Config/Stores/GeneratedStore.cs @@ -288,7 +288,7 @@ namespace IPA.Config.Stores var nonNullables = attrs.Select(o => o as NonNullableAttribute).NonNull(); name = member.Name; - isNullable = memberType.IsConstructedGenericType // TODO: figure out something to support this in .NET 3 + isNullable = memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(Nullable<>); allowNull = !nonNullables.Any() && (!memberType.IsValueType || isNullable);