New Features in Visual C# .NET - dummies

By Nitin Pandey, Yesh Singhal, Mridula Parihar

Part of Visual Studio .NET All-in-One Cheat Sheet

Visual C# .NET (pronounced Visual C sharp) is Microsoft’s new-generation programming language that integrates the flexibility of C++ with the short development cycle of Visual Basic. These features, along with an array of new features, make Visual C# more than just the sum of Visual Basic and C++.

Some of the features of Visual C# are

  • Garbage collection: The function of the garbage collector, provided by Visual C#, is to check for the objects not being used by an application and to delete them from memory.

  • Value/reference type system: According to the value/reference type system, the standard data types, enumerations, and structures are called value types. Interfaces, classes, and delegates are called reference types. This type system provides the advantage of eliminating a number of memory bugs and simplifying object manipulation.

  • Unified declaration and definition of class methods: The unified declaration and definition of class methods alleviates you from creating multiple files — one for declaration and the other for definition.

  • Delegates: A type-safe and secure object that contains a reference to a method. The advantage of using delegates is that it is helpful in anonymous invocation, which means that the method to be invoked is not known at compile time.

  • Simple thread synchronization: Enables you to create multithreaded applications.

  • Versioning: You need to explicitly override the members of a base class in a derived class. This revision creates a new version without affecting the existing program.

  • Interoperability: Visual C# applications are platform-independent.

  • Access to native-code: Visual C# allows a developer to programmatically view the native code.

  • Attributes: A declarative tag that you can use to describe various entities in your programs.