In the process of upgrading vb.net code from Visual Studio 2008 to Visual Studio 2015, I am getting an 'Integer' is not declared. It may be inaccessible due to its protection level. error on the following code:
[Integer].TryParse(...)
The error also occurs on similar code with [Date].TryParse. The target framework for both the original and upgraded code is .NET Framework 3.5. Upgrading the target framework doesn't matter. If I remove the square brackets, the code compiles. Does anyone know why this syntax works in Visual Studio 2008 but not Visual Studio 2015?
As @Plutonix @Blorgbeard and @jmcilhinney all answered in comments, you need to remove the square brackets. Converted to community wiki in line with this meta post recommendation, to remove from 'Unanswered' section.