From 784877821ad57d28de093de1930f40fae1b2195f Mon Sep 17 00:00:00 2001 From: Mark Michaelis Date: Sun, 24 Sep 2023 13:38:08 +0100 Subject: [PATCH] Added example of aliasing a tuple. --- src/Chapter05/Listing05.14.DeclaringATypeAlias.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Chapter05/Listing05.14.DeclaringATypeAlias.cs b/src/Chapter05/Listing05.14.DeclaringATypeAlias.cs index 1e093bba9..3494eee24 100644 --- a/src/Chapter05/Listing05.14.DeclaringATypeAlias.cs +++ b/src/Chapter05/Listing05.14.DeclaringATypeAlias.cs @@ -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 @@ -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 // ...