Week 4

Then we talked about generics: we can have generic methods, generic classes and generic interfaces. We then moved on to collections, which we’ve looked at only ArrayList. Then we started looking at generic collections where we started with SortedDictionary. We will continue with collections some more next week.

This week was pretty crowded and we also started files and streams in .NET. We first looked at how to get information about files and directories. Then we looked at how to write to a text file and how to read from a text file. We will continue with serialization next week.

Powerpoint files

generics_collections

Files_Streams

C# codes discussed in class

overloadedmethods_cs

genericmethod_cs

stack newstacktest_cs

arraylisttest_cs

ListTest_cs

HashtableTest_cs

SortedDictionaryTest_cs

StackTest_cs

QueueTest_cs

FileTestForm  FileTestForm_cs

CreateFileFor.zip  CreateFileForm_cs

ReadSequentialAccessFileForm  ReadSequentialAccessFileForm_cs

recordserializable

Serialization

Deserialization