Skip to content

Commit

Permalink
Added example of aliasing a tuple.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMichaelis committed Sep 24, 2023
1 parent 3c1817c commit 7848778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Chapter05/Listing05.14.DeclaringATypeAlias.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter05.Listing05_14;
#region INCLUDE
#region HIGHLIGHT
using CountDownTimer = System.Timers.Timer;
#if NET8_0_OR_GREATER // EXCLUDE
using StartStop = (DateTime Start, DateTime Stop);
#endif // NET8_0_OR_GREATER // EXCLUDE
#endregion HIGHLIGHT

public class HelloWorld
Expand All @@ -12,6 +15,9 @@ public static void Main()
{
#region HIGHLIGHT
CountDownTimer timer;
#if NET8_0_OR_GREATER // EXCLUDE
StartStop startStop;
#endif // NET8_0_OR_GREATER // EXCLUDE
#endregion HIGHLIGHT

// ...
Expand Down

0 comments on commit 7848778

Please sign in to comment.