Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Day 3. Using Visual Basic.NET and C#
Q&A
Q1:
Is VB.NET or C# case sensitive?
A1:
VB.NET is not. For example, the class names MyClass and myclass are identical. However, C# is case insensitive, so MyClass and myclass are two different variables. Similarly, Response.Write and Response.write are two different methods; the latter would result in an error if used. The case sensitivity of C# confuses many classic ASP developers.
Q2:
What happened to the variant type?
A2:
If you're familiar with previous versions of VB, you'll remember that the variant type was a generic data type used to represent any variables not declared as a specific type. In VB.NET, variant has been replaced with the Object type.