[Solved] Declare “Nullable[]” or “string[]?” for string array property that may or may not exist inside a class?

In short: you don’t need Nullable<T> or ? in this case at all. string[] is reference type: Console.WriteLine(typeof(string[]).IsValueType); the printed output will be false. So, it can be null without any decoration. Back to your sample. You need to specify setters as well to be able deserialize the given json fragement: public class Settings { … Read more