Lecture overview -- Keyboard shortcut: 'u'  Previous page: Non-simple types -- Keyboard shortcut: 'p'  Next page: Pointers and references -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Introduction to C# - slide 10 : 43

Arrays and Strings

Both arrays and strings are dealt with as objects in C#

In addition, there is special notation in the C# language of arrays and strings

ex-array.cs
Demonstrations of array types in C#.
array-output
Output from the array demonstration program.
ex-string.cs
A demonstration of strings in C#.
string-output
Output from the string demonstration program.
Go to exercise
Use of array types
Go to exercise
Use of string types
In C# it is often more attractive to use a (type parameterized) collection class instead of an array