I have the following code:
public static class ItemsHelper
{
public static object product
{
get
{
return HttpContext.Current.Items["product"];
}
set
{
HttpContext.Current.Items["product"] = value;
}
}
}
And then, in a function, I have the following expression:
if (ItemsHelper.product is null) return false;
I tested in visual studio 2017 and it works fine, but i tested in two different computers that runs visual studio 2015 and it retrieves the following error:
type expected )
Any one have an idea why this is happening?