|
Microsoft C#
On June 26, 2000, Microsoft announced the new Java Killer, C#, here is a few snippets that I have collected for you to peruse. C# Introduction and Overview
|
![]() | Garbage collection relieves the programmer of the burden of manual memory management. | |
![]() | Variables in C# are automatically initialized by the environment. | |
![]() | Variables are type-safe. |
The end result is a language that makes it far easier for developers to write and maintain programs that solve complex business problems.
Reduces ongoing development costs with built-in support for versioning
Updating software components is an error-prone task. Revisions made to the
code can unintentionally change the semantics of an existing program. To
assist the developer with this problem, C# includes versioning support in the
language. For example, method overriding must be explicit; it cannot happen
inadvertently as in C++ or Java. This helps prevent coding errors and preserve
versioning flexibility. A related feature is the native support for interfaces
and interface inheritance. These features enable complex frameworks to be
developed and evolved over time.
Put together, these features make the process of developing later versions of a project more robust and thus reduce overall development costs for the successive versions.
Better mapping between business process and implementation
With the high level of effort that corporations spend on business planning, it
is imperative to have a close connection between the abstract business process
and the actual software implementation. But most language tools don't have an
easy way to link business logic with code. For instance, developers probably
use code comments today to identify which classes make up a particular
abstract business object.
The C# language allows for typed, extensible metadata that can be applied to any object. A project architect can define domain-specific attributes and apply them to any language element-classes, interfaces, and so on. The developer then can programmatically examine the attributes on each element. This makes it easy, for example, to write an automated tool that will ensure that each class or interface is correctly identified as part of a particular abstract business object, or simply to create reports based on the domain-specific attributes of an object. The tight coupling between the custom metadata and the program code helps strengthen the connection between the intended program behavior and the actual implementation.
Extensive interoperability
The managed, type-safe environment is appropriate for most enterprise
applications. But real-world experience shows that some applications continue
to require "native" code, either for performance reasons or to
interoperate with existing application programming interfaces (APIs). Such
scenarios may force developers to use C++ even when they would prefer to use a
more productive development environment.
C# addresses these problems by:
![]() | Including native support for the Component Object Model (COM) and Windows®-based APIs. | |
![]() | Allowing restricted use of native pointers. |
With C#, every object is automatically a COM object. Developers no longer have to explicitly implement IUnknown and other COM interfaces. Instead, those features are built in. Similarly, C# programs can natively use existing COM objects, no matter what language was used to author them.
For those developers who require it, C# includes a special feature that enables a program to call out to any native API. Inside a specially marked code block, developers are allowed to use pointers and traditional C/C++ features such as manually managed memory and pointer arithmetic. This is a huge advantage over other environments. It means that C# programmers can build on their existing C and C++ code base, rather than discard it.
In both cases-COM support and native API access-the goal is to provide the developer with essential power and control without having to leave the C# environment.
C# is a modern, object-oriented language that enables programmers to quickly and easily build solutions for the Microsoft .NET platform. The framework provided allows C# components to become Web services that are available across the Internet, from any application running on any platform.
The language enhances developer productivity while serving to eliminate programming errors that can lead to increased development costs. C# brings rapid Web development to the C and C++ programmer while maintaining the power and flexibility that those developers call for.
For additional resources:
![]() |
C# will be now included in future MSDN library shipments. | |
![]() |
C# Language Reference Download Reprinted from the Microsoft .Net home page |
Send mail to WebMaster with
questions or comments about this web site.
|