Nullable Reference Types and the Options Pattern
It seems, that you have two possible options here. First one is to initialize an Options properties using empty string (instead of null value) to avoid null checks public sealed class MyOptions { public string Name { get; set; } = “”; } Second one is to make all of the properties a nullable ones … Read more