Browse Source

Fixed Nullable checks for .NET 3

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
e75f58a559
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Config/Stores/GeneratedStore.cs

+ 1
- 1
IPA.Loader/Config/Stores/GeneratedStore.cs View File

@ -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);


Loading…
Cancel
Save