commit 1218c596fbe09b092349f98a4278e70eb9f7f9fc parent 07fb8aa4fb1ca2251cdaf1fe0be66cb4cb3b038e Author: Mikolaj Lenczewski <mikolaj.lenczewski308@gmail.com> Date: Sun, 3 May 2020 13:22:41 +0100 Nullables are stupid >:( Diffstat:
| M | NetSharp/NetSharpExamples/Program.cs | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/NetSharp/NetSharpExamples/Program.cs b/NetSharp/NetSharpExamples/Program.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; -#nullable enable - namespace NetSharpExamples { internal class Program @@ -26,7 +24,7 @@ namespace NetSharpExamples } Type[] interfaces = type.GetInterfaces(); - object? instance = Activator.CreateInstance(type); + object instance = Activator.CreateInstance(type); switch (interfaces.Length) {