C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg. This tutorial will teach you basic C# programming and will also take you through various advanced concepts related to C# programming language.
Audience
This tutorial has been prepared for the beginners...
Saturday, December 1, 2018
C# - Overview
C# is a modern, general-purpose, object-oriented programming language developed by Microsoft and approved by European Computer Manufacturers Association (ECMA) and International Standards Organization (ISO).
C# was developed by Anders Hejlsberg and his team during the development of .Net Framework.
C# is designed for Common Language Infrastructure...
C# - Environment
In this chapter, we will discuss the tools required for creating C# programming. We have already mentioned that C# is part of .Net framework and is used for writing .Net applications. Therefore, before discussing the available tools for running a C# program, let us understand how C# relates to the .Net framework.
The .Net Framework
The .Net framework...
C# - Program Structure
Before we study basic building blocks of the C# programming language, let us look at a bare minimum C# program structure so that we can take it as a reference in upcoming chapters.
Creating Hello World Program
A C# program consists of the following parts −
Namespace declaration
A class
Class methods
Class attributes
A Main method
Statements and...
C# - Basic Syntax
C# is an object-oriented programming language. In Object-Oriented Programming methodology, a program consists of various objects that interact with each other by means of actions. The actions that an object may take are called methods. Objects of the same kind are said to have the same type or, are said to be in the same class.
For example, let us...
C# - Data Types
The variables in C#, are categorized into the following types −
Value types
Reference types
Pointer types
Value Type
Value type variables can be assigned a value directly. They are derived from the class System.ValueType.
The value types directly contain data. Some examples are int, char, and float, which stores numbers, alphabets,...
Contact Form
Popular Posts
-
JavaScript Date Input There are generally 3 types of JavaScript date input formats: TypeExample ISO Date "2015-03-25" (The Int...
-
The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Const...
-
The SQL CREATE TABLE Statement The CREATE TABLE statement is used to create a new table in a database. CREATE TABLE table_name (...
-
We discussed that delegates are used to reference any methods that has the same signature as that of the delegate. In other words, you can ...
-
When you define a class, you define a blueprint for a data type. This does not actually define any data, but it does define what the class ...
-
PHP User Defined Functions Besides the built-in PHP functions, we can create our own functions. A function is a block of statements tha...
-
The SQL SELECT TOP Clause The SELECT TOP clause is used to specify the number of records to return. The SELECT TOP clause is useful on ...
-
Migration from HTML4 to HTML5 This chapter is entirely about how to migrate from HTML4 to HTML5 . This chapter demonstrates how to...