C# Programming Overview continued - Expressions, Statements & Operators
This section is mainly for reference, you will refer to this quite regularly in the beginning.
This section is mainly for reference, you will refer to this quite regularly in the beginning.
In C#, a value type can be either a struct or an enumeration. C# contains a set of predefined struct types called the simple types. These simple types are identified through reserved words. All value types implicitly inherit form a class called object. Also, no type can derive from a value type. It is not possible for a value type to be null (null means “nothing” or “no value”). Assigning a variable of a value type creates a copy of the value. This is different from assigning a variable of a reference type, which copies the reference and not the object identified by the reference.
In C#, a variable represents a storage location. A variable has a type that determines what values can be stored in this variable. Because C# is a type-safe language, the C# compiler guarantees that values stored in variables are always of the appropriate type. The value of a variable is changed through the assignment operator. The value of a variable is also changed through the use of the ++ and — operators. A variable must be definitely assigned before its value can be obtained: variables are either initially assigned or initially unassigned. An initially assigned variable has a well-defined initial value. An initially unassigned variable has no initial value.
Continued from previous post
C# is a new, simple programming language based on the older programming language called C++. The similarities between C# and C++ are easily notified. This chapter is an overview of the C# programming language. In this chapter we might use some instructions or expressions without explaining their meaning. These materials will be covered in subsequent chapters.
So if you’re new to game development, welcome to a whole new world of fun where the only limit is your imagination (skills can be learned, creativity must be something from within). If you have been around with programming or basic game development, most of what will be covered in this tutorial you should already know, feel free to comment and improve where necessary.
When I was starting out in game development, there was not a lot of info out there or the budding indie game developer, what was out there was generally hard to reach or not clearly documented.
One of the issues I (and from the look on the XNA blogs around) have always had problems getting into 3D modelling, usual problems being:
Like quite a few developers these days, I like nothing more that sitting in the garden or relaxing on the couch (sofa) when I’m fumbling over some code, this is a bit hard to do with my trusty power hungry workhorse dev PC (just doesn’t feel nice to carry around in a backpack you know! :-)).
I’m not taking credit here or rushing out to the shops, but you must of heard by now on the XNA Team blog, if you haven’t, here it is!!.
When most people start when jumping into game development, they begin with simple 2D games.
Browsing on my blogs (as you do) I happily read around the XNA Teams blogs over the last few days (I’m working in India at the moment so do not have much time for it).