3. Agenda
•
•
•
Type System
Value types and Reference types
Type conversions
New types:(structs, enums, arrays, delegates)
Object System
Namespaces(packages)
Inheritances
Interfaces (collection)
Cast Operators
Attributes
4. C# Primitive Value Types
char, float, double, int, long, short
Bool
New types: decimal, uint, ulong, ushort
Structs and Enumerations…etc.
23. Access Modifiers
Five Possible access Modifiers instead of four
• Private – same as java
• Public - same as java
• Protected – only this class and derived classes
• Internal – only classes in the same assembly file
• Protected internal – any class in the same
assembly or any derived class – even if its in a
different assembly file
24. Collections
Collection classes are specialized classes
for data storage and retrieval
Most collection classes implement the
same interfaces.
Many classes provided by the runtime
libraries implement ICollection. (arrays, ..)
System.Collections.ICollection