M
Mark
What is the difference between declaring variables like ...
string strSomething;
versus
String strSomething;
My understanding is that the first uses a primitive type, and the second
creates an instance of a String class. While it likely will never make a
difference, is there reason to consider always using the primitive data type
when that's all you need? What are the best practices related to this?
Perhaps String/string is a unique case ... but bool and Boolean appear to be
similar???
Thanks in advance.
Mark
string strSomething;
versus
String strSomething;
My understanding is that the first uses a primitive type, and the second
creates an instance of a String class. While it likely will never make a
difference, is there reason to consider always using the primitive data type
when that's all you need? What are the best practices related to this?
Perhaps String/string is a unique case ... but bool and Boolean appear to be
similar???
Thanks in advance.
Mark