C# Basics

C# Floating Points

They contain fractional points values (e.g.: 1.80, 3.14 etc). This type is being used to store fractional point values. This type is especially useful for mathematical problems such as gravity of earth, pi value etc. In C# double data type is being mostly used in many cases because it has a greater range than float. […]

Posted in: C# Basics, C#.NET

C# Decimal

Decimal data type is used for monetary calculations. It is being used for computations that involve money. It is used for financial calculations, such as calculations discount prices, percentages etc. The value which is being stored in decimal must be suffixed with character (m) (e.g.: 12.22m). DATA TYPE WIDTH IN BITS RANGE decimal 128 1Eā€“28 […]

Posted in: C# Basics, C#.NET

C# Character

Used to store an unsigned single character. In c# Char supports both ASCII and UNICODE characters. We can store any character in char data type such as (ā€˜Lā€™,’$’,’4′) etc. Char uses single quotations for store a character. DATA TYPE WIDTH IN BITS RANGE char 16 0 TO 127

Posted in: C# Basics, C#.NET

C# bool

The bool type represents true / false values. Two reserved keywords are used to store in bool that are true and false. bool data type is used for logical programs. DATA TYPE DESCRIPTION bool Represents true / false values.

Posted in: C# Basics, C#.NET

C# Reference Types

In reference type, a variable contains the reference to the value instead of actual / direct value. In reference type a variable refers to a memory location. Commonly used reference type is a CLASS (will be discussed later). String, object, class are the examples of reference types.

Posted in: C# Basics, C#.NET

C# String

A string literal is a set of characters enclosed by double quotes. It is a collection of char objects.

Posted in: C# Basics, C#.NET

C# Data Type Initialization

All data types can be used as: Syntax: data_type var_name = value; STATEMENT DESCRIPTION data_type Data type to be specified such as int, string, bool, char, double etc. var_name It is a name of a variable, this can be any valid name (e.g.: number, websiteName etc). = It is an assignment operator which is used […]

Posted in: C# Basics, C#.NET

C# Basic Program Structure

Example, a simple program structure: using System; namespace csharpBasic { // Start class definition / declaration. class Program { // Static main method void type declaration. static void Main(string[] args) { // An int type variable is declared and initialized. int studentRollNo = 78005; // Print variable. Console.WriteLine(studentRollNo); Console.ReadKey(); } // End of main method […]

Posted in: C# Basics, C#.NET
Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .