Hi there,
I'm currently struggleing with some details:
string vs. String
I found this: "The string type represents a string of Unicode characters. string is an alias for String in the .NET Framework" (http://msdn2.microsoft.com/en-us/library/362314fe.aspx)
And this: A string is a sequential collection of Unicode characters that is used to represent text. A String object is a sequential collection of System.Char objects that represent a string. (http://msdn2.microsoft.com/en-us/library/system.string.aspx)
So what is it Is the the same or, not
string s = new string(System.Char* value);
String S = new String(System.Char* value);
string s = "hello";
String S = "hello";
So I would say string and String are the same, but the way you initialize them matters. Correct
string is a reference type, which puts the instance to the heap, correct Regardless of writing "new string" or not, right
But what about double and Double
double d = 5
Double D = new Double(); D = 5;
Are both instances on the heap Wouldn't think so...
But both work:
Double D = 5;
double d = 5;
So what's the big meaning in C# between small and capital
Thanks for your help,
Finch.