4 ms·
How to Learn C# Part 4 - Variables and Types
- IanDrake 14y agoNice start. One comment... Mentioned in the section on float: "If you need a greater range you can use something like long..." Might make more sense to offer the double type here since a double is floating point.
- kenjackson 14y agoAgreed, good start. One small point, you say, "To declare a variable, you must first declare the type, then the name you want for it." With 'var' you don't declare the type. Maybe the phrase should be "you often declare the type", with a footnote letting them know that later they'll learn about when they can avoid declaring the type and let the compiler deduce it for them.
- jinushaun 14y agoI'm pretty much all "var" all the time.