Value And Reference Types
Date posted: 03.11.2012
Comments : 0
Introduction
Every variable created in a .Net application can be either of value or reference type. C#'s value type consist of most basic types such as all numeric types, bools, enums and structs. All other types, such as strings, classes, interfaces etc, are reference types. At first you may guess that value types are simpler than reference types. A class for example can be much more complex...
Hiding And Overriding in C#
Date posted: 23.10.2012
Comments : 0
In this article we will talk about polymorphism in C# and look into the use of hiding and overriding.
Getting started
A developer who uses C# is expected to know what polymorphism is. In case someone is not sure, in a few words, polymorphism is the ability to treat a class, through inheritance, as if being of another type. Assume we create a class (which we will...
Casting and converting in C#
Date posted: 16.10.2012
Comments : 0
This is my very first post. In this article I will analyze the essense of casting in c# and discuss various ways you can use in order to use your variables the way you want.
Getting Started
What is casting? Using casting is like telling the compiler to treat an object of type A, as having type B. The most common way to do this is including the new type in parenthesis right before...