I apologize for asking so many questions.
I will use reply instead of opening a new topic next time
Code: Select all
static void Main(string[] args)
{
Console.WriteLine("start");
TestNullable2();
Console.WriteLine("Finished");
Console.ReadLine();
}
[Obfuscation(Exclude = false, Feature = "ultra")]
public static int? TestNullable(int? value)
{
return value;
}
[Obfuscation(Exclude = false, Feature = "ultra")]
static void TestNullable2()
{
int? nullableResult = TestNullable(null); <--------- System.Reflection.TargetException: Non-static method requires a target (I'm not sure which line)
System.Console.WriteLine("TestNullable Result: " + nullableResult);
if (nullableResult != null)
{
System.Console.WriteLine("TestNullable failed!");
}
}