You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is by design and works the same as it does in Visual Studio. Disabled blocks are simply never parsed. Remember that anything can go in disabled blocks of code, including random non-C# text.
From @PeterHimschoot on November 13, 2016 11:31
Steps to Reproduce:
#define WITH_DISPOSE
using System;
namespace HiddenIDisposables
{
#if WITH_DISPOSE
public class SomeResource : ISomeResource, IDisposable
{
public string Foo()
{
return "Foo";
}
#else
public class SomeResource : ISomeResource
{
public string Foo()
{
return "Foo";
}
}
#endif
}
Copied from original issue: microsoft/vscode#15423
The text was updated successfully, but these errors were encountered: