csharp Tutorials

What is C#?

  • 2011-02-04
  • Comments
  • Ram Baskar
  • 1349

C# (pronounced "see sharp") is a multi-paradigm programming language encompassing imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within the .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270). C# is one of the programming languages designed for the Common Language Infrastructure.
Read More

Design Goals of C#

  • 2011-02-04
  • Comments
  • Ram Baskar
  • 1352

The ECMA standard lists these design goals for C#:
Read More

Why it was named C#?

  • 2011-02-04
  • Comments
  • Ram Baskar
  • 1350

The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1.
Read More

History of C#?

  • 2011-02-04
  • Comments
  • Ram Baskar
  • 1349

During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC). In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language". Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000 Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#.
Read More

Which version of C# to use?

  • 2011-02-04
  • Comments
  • Ram Baskar
  • 1349

For a beginner it is always a daunting task to decide on which version to use and which development tool to use. The table here shows clearly the available versions of C# and the corresponding Visual Studio version to use.
Read More

Major features of C#

  • 2011-02-05
  • Comments
  • Ram Baskar
  • 1350

By design, C# is the programming language that most directly reflects the underlying Common Language Infrastructure (CLI). Most of its intrinsic types correspond to value-types implemented by the CLI framework. However, the language specification does not state the code generation requirements of the compiler: that is, it does not state that a C# compiler must target a Common Language Runtime, or generate Common Intermediate Language (CIL), or generate any other specific format. Theoretically, a C# compiler could generate machine code like traditional compilers of C++ or Fortran.
Read More

Comments in C#

  • 2011-02-05
  • Comments
  • Ram Baskar
  • 1350

C# utilizes a double forward slash (//) to indicate the rest of the line is a comment. This is inherited from C++.
Read More

Categories of datatypes in C#

  • 2011-02-05
  • Comments
  • Ram Baskar
  • 1352

Value types are plain aggregations of data. Instances of value types do not have referential identity nor a referential comparison semantics - equality and inequality comparisons for value types compare the actual data values within the instances, unless the corresponding operators are overloaded. Value types are derived from System.ValueType, always have a default value, and can always be created and copied. Some other limitations on value types are that they cannot derive from each other (but can implement interfaces) and cannot have an explicit default (parameterless) constructor. Examples of value types are some primitive types, such as int (a signed 32-bit integer), float (a 32-bit IEEE floating-point number), char (a 16-bit Unicode code unit), and System.DateTime (identifies a specific point in time with nanosecond precision). Other examples are enum (enumerations) and struct (user defined structures).
Read More

Hello World sample program in C#

  • 2011-02-05
  • Comments
  • Ram Baskar
  • 1350

The above line of code tells the compiler to use 'System' as a candidate prefix for types used in the source code. In this case, when the compiler sees use of the 'Console' type later in the source code, it tries to find a type named 'Console', first in the current assembly, followed by all referenced assemblies. In this case the compiler fails to find such a type, since the name of the type is actually 'System.Console'. The compiler then attempts to find a type named 'System.Console' by using the 'System' prefix from the using statement, and this time it succeeds. The using statement allows the programmer to state all candidate prefixes to use during compilation instead of always using full type names.
Read More

Most Viewed Articles on csharp

Latest Tutorials

Ask a Question

Subscribe to Tutorials

Related Tutorials

Major features of C#

Categories of datatypes in C#

Boxing and unboxing in C#

Preprocessor directives in C#

Comments in C#

Hello World sample program in C#

SOAP serialization in C#

What is C#?

Design Goals of C#

Why it was named C#?

History of C#?

Which version of C# to use?

Convert Image to Base64 String in C#

Convert Base64 String to Image in C#

Archived Comments

1. plz give me for css coding
View Tutorial          By: anil mani at 2008-04-19 01:20:06

2. its very helpful..thank you..
View Tutorial          By: roja at 2013-06-16 12:37:32

3. ans to 23:
by using gdb(GNU deb

View Tutorial          By: Bhargav at 2011-11-02 13:23:51

4. Thanks and easy to understand.....impressive logic
View Tutorial          By: Dj at 2009-11-26 13:33:34

5. Your solution has really helped me and educated me
View Tutorial          By: Tziq at 2011-01-25 08:06:06

6. Hi Binod,

Since JSP code is execute

View Tutorial          By: Aathi at 2009-05-28 21:20:10

7. Cant be compiled, i got error with this msg:. cann
View Tutorial          By: ken at 2011-04-17 04:32:36

8. i m very glad to know and use this site. this is w
View Tutorial          By: Rupinder at 2009-09-08 08:49:23

9. Hiiii Al, I am Ashraf Abu Aisheh, i am working to
View Tutorial          By: Ashraf Abu Aisheh at 2008-11-09 14:56:39

10. Don't forget the native type char, which is a 16 b
View Tutorial          By: Ron Stern at 2011-09-18 17:24:12