MSTC'14 (windows 8 + windows phone) Workshops_Day 2

713 views

Published on

Published in: Technology
2 Comments
2 Likes
Statistics
Notes
No Downloads
Views
Total views
713
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
23
Comments
2
Likes
2
Embeds 0
No embeds

No notes for slide

MSTC'14 (windows 8 + windows phone) Workshops_Day 2

  1. 1. Introduction to PRESENTED BY : AMIRA GAMAL ASMAA NOUH
  2. 2. Welcome Windows 8 Windows Phone
  3. 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. 4. C# Primitive Value Types  char, float, double, int, long, short  Bool  New types: decimal, uint, ulong, ushort  Structs and Enumerations…etc.
  5. 5. C# Value Sizes
  6. 6. C# Reference types  Class (Non Primitive)  object  Strings  Interfaces  Arrays  Delegate (method pointers)
  7. 7. Value Types vs. Reference Types Example: Does b==a after this fragment runs?  –No, if type is a Value Type  -Yes, if type is a Reference Type
  8. 8. Conversions Implicit vs. Explicit  Some conversions can be done implicitly Example:  Others need an explicit cast Example:
  9. 9. Structs   Like classes Methods:(Constants,Constructors,..)  box or unbox to convert between structs and classes.  No destructors allowed.
  10. 10. Struct Example
  11. 11. Enums (Enumerations)
  12. 12. Enums (Enumerations)
  13. 13. Arrays
  14. 14. Delegates
  15. 15. Delegates
  16. 16. Delegates
  17. 17. Delegates
  18. 18. Delegates
  19. 19. Delegates
  20. 20. Namespaces
  21. 21. Namespaces
  22. 22. Inheritance Single-Inheritance Only (like Java)
  23. 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. 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
  25. 25. Video
  26. 26. video
  27. 27. Any Questions?
  28. 28. Contact Us: Amira Gamal Amera.gamal@Hotmail.com Twittwer: @Amira_gamalm FB: /amiragamalsalem Asmaa Nouh Asmaa.nouh@Hotmail.com Mob. No.: 01112644445 FB: /smsmnouh

×