I have encountered the following issue.
http://stackoverflow.com/questions/4292 ... ectors-bug
C# Code:
===============
private static string host;
public static string Host
{
get
{
return host ?? (host= (ConfigurationManager.AppSettings["Host"] ?? "host.ru"));
}
}
===============
Reflector's output:
===============
public static string Host
{
get
{
if (Helper.host == null)
{
string host = Helper.host;
}
return (Helper.host = ConfigurationManager.AppSettings["Host"] ?? "host.ru");
}
}
Those pieces of code mean different logics. Is this a bug?
http://stackoverflow.com/questions/4292 ... ectors-bug
C# Code:
=============== ===============
Reflector's output:
===============
Those pieces of code mean different logics. Is this a bug?