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
{{ message }}
Repository navigation
C# -> VB: If pre-processing directive contents are not converted. #489
For reference, here is a more complicated example to convert.
Input code
usingSystem;namespaceICSharpCode.CodeConverter.Shared{internalstaticclassEnv{/// <summary>/// Should be used to control any degree of parallelism in the codebase/// </summary>publicstaticbyteMaxDop=
#if DEBUGSystem.Diagnostics.Debugger.IsAttached?(byte)1:
#endif
(byte)Math.Min(Math.Max(Environment.ProcessorCount,byte.MinValue+1),byte.MaxValue);}}
The first case works as of #517. However the code within the conditional isn't processed, it just happens to be valid in this case, so I'll leave this open for now
changed the title [-]C# -> VB: If pre-processing directives are not converted.[/-][+]C# -> VB: If pre-processing directive contents are not converted.[/+]on Mar 9, 2020
Activity
RussellSmith2 commentedon Jan 13, 2020
For reference, here is a more complicated example to convert.
Input code
GrahamTheCoder commentedon Mar 8, 2020
The first case works as of #517. However the code within the conditional isn't processed, it just happens to be valid in this case, so I'll leave this open for now
[-]C# -> VB: If pre-processing directives are not converted.[/-][+]C# -> VB: If pre-processing directive contents are not converted.[/+]GrahamTheCoder commentedon Mar 20, 2020
Consolidating into #15