+ sprinkles of




    
    
public void castSpell(Spell spell, bool repeat,
            int timeOutinMs, int rangeInM, bool hitFriendly) {…}

public v...
public void castSpell(Spell spell, bool repeat = false,
            int timeOutinMs = -1, int rangeInM = 30,
            b...
public void castSpell(Spell spell, bool repeat = false,
           int timeOutinMs = -1, int rangeInM = 30,
           boo...


    

    
    

    

        List<object> names = new List<string>();
HordeSubject



Orc      Undead      Troll
HordeSubject player = new Orc();


HordeSubject player = new Undead();




List<HordeSubject> raid = new List<Orc>();



           ℤ

    
       ℤ
    

         ∈ℤ
       
       
       
       ∈ℤ

    
        ∀    ∈ℤ
    

    

    
       ∀    ∈ℤ
        ∀    ∈ℤ
    

    

    
       ∀    ∈ℤ
                  ∀   ∈ℤ
    
Orc   HordeSubject
Undead   HordeSubject   OrcShaman   Orc

Orc   HordeSubject
       Orc           HordeSubject

               
Orc   HordeSubject
      Orc                 Hord...
List<HordeSubject> raid =
     new List<Orc>();


raid.Add(new Undead());
IEnumerable<HordeSubject> raid =
     new List<Orc>();


                                  out
    public interface IEnumerable<out T>
       {
           IEnumerator<T> GetEn...
IComparer<HordeSubject> hordeStat =
     GetHordeComparer();
IComparer<Orc> orcStat = hordeStat;



                                       in

    public interface IComparer<in T>
        {
            int Compare(T x...
   
    

   


   

    

    

    

    

    







    
    

    

    

    

    

    

    

    
    
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
Upcoming SlideShare
Loading in...5
×

2² C# 4.0 and .NET 4 Selected Features

1,287
-1

Published on

These are the slides for the short version of my talk, presentation time for those is approx. 30 minutes. A slide set which goes into more detail for the DLR and .NET dynamic features is geared for 90 minute talks incl. demos.
--
The slideshare viewer neither features the animations nor all correct fonts of my original PowerPoint 2010 presentation. That's the reason why some of the typography and alignment looks funny/weird. Most slides in the original file are animated so that the audience doesn't get overwhelmed by text and information.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,287
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2² C# 4.0 and .NET 4 Selected Features

  1. 1. + sprinkles of
  2. 2.     
  3. 3. public void castSpell(Spell spell, bool repeat, int timeOutinMs, int rangeInM, bool hitFriendly) {…} public void castSafeSpell(Spell spell, bool repeat, int timeOutinMs, int rangeInM) { castSpell(spell, repeat, timeOutinMs, range, false); } public void castNeverEndingSpell(Spell spell, int rangeInM, bool hitFriendly) { castSpell(spell, true, -1, range, hitFriendly); }
  4. 4. public void castSpell(Spell spell, bool repeat = false, int timeOutinMs = -1, int rangeInM = 30, bool hitFriendly = false) Spell frost = new FrostFury(); castSpell(frost); Spell frost = new FrostFury(); castSpell(frost, false);
  5. 5. public void castSpell(Spell spell, bool repeat = false, int timeOutinMs = -1, int rangeInM = 30, bool hitFriendly = false)  Spell frost = new FrostFury(); castSpell(frost, rangeInM: 1000);  
  6. 6.        List<object> names = new List<string>();
  7. 7. HordeSubject Orc Undead Troll
  8. 8. HordeSubject player = new Orc(); HordeSubject player = new Undead(); List<HordeSubject> raid = new List<Orc>();
  9. 9.    ℤ   ℤ 
  10. 10.  ∈ℤ        ∈ℤ    ∀ ∈ℤ  
  11. 11.    ∀ ∈ℤ  ∀ ∈ℤ      ∀ ∈ℤ  ∀ ∈ℤ 
  12. 12. Orc HordeSubject Undead HordeSubject OrcShaman Orc
  13. 13.  Orc HordeSubject Orc HordeSubject  Orc HordeSubject Orc HordeSubject
  14. 14. List<HordeSubject> raid = new List<Orc>(); raid.Add(new Undead());
  15. 15. IEnumerable<HordeSubject> raid = new List<Orc>();
  16. 16.   out public interface IEnumerable<out T> { IEnumerator<T> GetEnumerator(); } public interface IEnumerator<out T> { T Current { get; } bool MoveNext(); }
  17. 17. IComparer<HordeSubject> hordeStat = GetHordeComparer(); IComparer<Orc> orcStat = hordeStat;
  18. 18.   in public interface IComparer<in T> { int Compare(T x, T y); }
  19. 19.          
  20. 20.      
  21. 21.    
  22. 22.           
  23. 23.       
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×