Introduction to C#

Introduction to C#1.Overview
2.Types
3.Expressions
4.Declarations
5.Statements
6.Classes and Structs
7.Inheritance
8.Interfaces
9.Delegates
10.Exceptions
11.Namespaces and Assemblies
12.Attributes
13.Threads
14.XML Comments


Class System.String
Can be used as standard type string
string s = “Alfonso”;
Note
.Strings are immutable (use StringBuilderif you want to modify strings)
.Can be concatenated with +: “Don ” + s
.Can be indexed: s[i]
.String length: s.Length
.Strings are reference types => reference semantics in assignments
.but their values can be compared with ==and !=: if (s == “Alfonso”) …
.Class Stringdefines many useful operations: CompareTo, IndexOf, StartsWith, Substring, …

Website: www.ssw.uni-linz.ac.at | Filesize: 443kb
No of Page(s): 65
Click here to download Introduction to C#.

Related Tutorial

Tags: , , , , , , , , , ,

Comments

Leave a Reply