G
Guest
Suppose that you have below property in some class,
#if DEBUG
public string DebugInfo
{
get
{
return "INDEX : " + _name + "\n" +
"Index Owner : " + _owner.Name + "\n" +
"Index Column Count: " + _columns.Count + "\n";
}
}
#endif
Somewhere you call this property get function as below
System.Diagnostics.Debug.Print(index.DebugInfo);
In release mode this code does not compile. The error is
'Sesam.Studio.Stat.Database.Index' does not contain a definition for
'DebugInfo' .
It got confused of the error because I write this in a Debug call. Are
Debug calls excluded in Release mode or not? Why doesn't above code compile?
#if DEBUG
public string DebugInfo
{
get
{
return "INDEX : " + _name + "\n" +
"Index Owner : " + _owner.Name + "\n" +
"Index Column Count: " + _columns.Count + "\n";
}
}
#endif
Somewhere you call this property get function as below
System.Diagnostics.Debug.Print(index.DebugInfo);
In release mode this code does not compile. The error is
'Sesam.Studio.Stat.Database.Index' does not contain a definition for
'DebugInfo' .
It got confused of the error because I write this in a Debug call. Are
Debug calls excluded in Release mode or not? Why doesn't above code compile?