c sharp free tutorial

Page 1

Tekslate C# Free Tutorial


Introduction to C# C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time. C# syntax simplifies many of the complexities of C++ and provides powerful features such as nullable value types, enumerations, delegates, lambda expressions and direct memory access, which are not found in Java. C# supports generic methods and types, which provide increased type safety and performance, and iterators, which enable implementers of collection classes to define custom iteration behaviors that are simple to use by client code. LanguageIntegrated Query (LINQ) expressions make the strongly-typed query a first-class language construct.


Type Casting in C# .Net Type casting is a concept of converting from one data type into another data type. C# supports two types of type casting a) Implicit type casting under control of CLR Lower to higher b) Explicit type casting under control of programmer higher to lower Observations Byte to long implicit Int to byte Explicit Int to float implicit Float to int explicit


Parsing in C# .Net

In C # .net all the data types are predefined structure. char c; Char is a structure and c is a structure variable. Structure contains a collection of methods. Structure will be stored in a stack memory. As per above statements, every data type contains a collection of pre defined methods .


Conditional Statements in C# .Net Conditional Statements Syntax of if condition : Syntax 1 If (condition) Statement 1 ; Else Statement 2; Syntax 2 If (condition) { Statement 1 ; Statement 2; } Else { Statement 3; Statement 4; }


Loops in C# .Net Loops Syntax of for loop For (initialization ; condition , ++ (or) --) { Statements; } While Syntax While (condition) { Statements ; } Do While Syntax Do { Statements ; } While (condition)


Arrays in C# .Net Arrays Arrays are of type “reference� That is even if an Array is not initialized still it holds some default values. int a, b, c ; C = a + b;

STACK


Enumerators in C# .Net Enumerators (enum) enum is a keyword enum is a collection of integral Constants , which will be Identified with string constants. enum is a user defined data type. Syntax to write enum Enum enum _name { String value = Integer value, String value = Integer value, String value = Integer value, }


And Also Issues Interview Questions How to’s For More Tableau Free Tutorials Please Visit: http://bit.ly/1tKYWm3


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.