@ola oyeleye: I'm adding a bunch of stuff this week. Stay tuned ...
@TheSpecialist: Another great question. Why do you need the String class in addition to the string primitive. System.String (capital 'S') is defined in the .NET Framework Common Type System. C# implements a "short cut" as string (lower-case 's'). Actually, it is the same with *all* primitive types:
That should explain it. Good luck!
C# Fundamentals for Absolute Beginners: (18) Understanding Namespaces and Adding References to AssembliesJun 04, 2014 at 2:40 PM
@TheSpecialist: Why do I still use it even though it is already declared in the beginning? Good question. The answer is the *technically* I don't have to. However, *practically* I choose this "style" because it is expressive. If you are new to .NET, it would still be obvious to you the full namespace where the:
... is coming from. I am explicit in these cases for others who read my code (and heck, for myself ... I'll have to read that code again someday!)
So, in short, it's simply a style preference.
@saikatdas0790: Where did you read that? I'm looking at this link:
Attribute values can contain text and character references, with additional restrictions depending on whether they are unquoted attribute values, single-quoted attribute values, or double-quoted attribute values. Also, the HTML elements section of this reference describes further restrictions on the allowed values of particular attributes, and attributes must have values that conform to those restrictions.
In the the HTML syntax, attributes can be specified in four different ways:
empty attribute syntax
unquoted attribute-value syntax
single-quoted attribute-value syntax
double-quoted attribute-value syntax
@Saikat Das: re #2: I found this interesting ... http://tiffanybbrown.com/2011/03/23/html5-does-not-allow-self-closing-tags/
C# Fundamentals for Absolute Beginners: (17) Working with Classes and Inheritances in the .NET Framework Class LibraryApr 09, 2014 at 11:34 AM
@kushalxp: Hi, sorry it's not helping ... can you articulate exactly what it is that is not making sense? Are you having a hard time understanding WHY classes / etc. exist? Or ...?