1 / 6

An overview

C#. An overview. Visual C#. Microsoft describes C# as a simple, general-purpose programming language that enables you to build rich, connected Web and client applications on the .NET Framework. A multi paradigm language with a OOP syntax

xiang
Download Presentation

An overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C# An overview

  2. Visual C# • Microsoft describes C# as a simple, general-purpose programming language that enables you to build rich, connected Web and client applications on the .NET Framework. • A multi paradigm language with a OOP syntax • Is a spawn of Delphi and Java and the Delphi designer leads development • C# is designed to be a simple and general purpose language • Designed to have a minimal learning curve for devs porting from other C languages such as C and C++ • Can be used on embedded systems

  3. Hello world example • class ExampleClass • { • static void Main() • { • System.Console.WriteLine("Hello, world!"); • } • }

  4. Criticisms • Doesn’t compete with C on performance • Programs written for .NET and other virtual machine environments require more memory than similar applications written in languages like C++. C++ does not have an extensive associated library. C# CPU speed is also lower than for native languages • Only completely available on Microsoft OS’s • Always debates about whether C# or VB is better

  5. Features of Visual Basic .NET not found in C# • Auto-wireup of events, VB.NET has the Handles syntax for events. • Support for optional variables. Visual Basic .NET is better suited for DLL interoperability which is a particular advantage for automating Microsoft Office • Marshalling an object for multiple actions using an unqualified dot reference. This is done using the With...End With structure

  6. Visual Basic .NET has better interoperability with older versions of Microsoft Office (In term of native VBA language for Office still is Visual Basic 6.X, not Visual Basic.NET) • C# is case sensitive so it is possible to have two variables with the same name, eg variable1 can be different to Variable1

More Related