From 7a45fc5074958c63a2092a6dbc0933a568ac59fa Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Wed, 16 Jun 2021 16:18:36 +0200
Subject: [PATCH] added obsolete to the switch extension method.

---
 VectoCore/VectoCore/Utils/SwitchExtension.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Utils/SwitchExtension.cs b/VectoCore/VectoCore/Utils/SwitchExtension.cs
index abd6fd3897..5644fd07d6 100644
--- a/VectoCore/VectoCore/Utils/SwitchExtension.cs
+++ b/VectoCore/VectoCore/Utils/SwitchExtension.cs
@@ -50,7 +50,7 @@ namespace TUGraz.VectoCore.Utils
 		/// <typeparam name="T"></typeparam>
 		/// <param name="self">The self.</param>
 		/// <returns></returns>
-		[DebuggerHidden]
+		[DebuggerHidden,Obsolete("replace by pattern matching",true)]
 		public static Switch<T> Switch<T>(this T self)
 		{
 			return new Switch<T>(self);
-- 
GitLab