From 98c5ebd306844afbe7084e5641ca46db0351bc08 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 14 Aug 2025 09:34:35 +0200 Subject: [PATCH] Fix compiler error with C# 14. Fixes: > error CS9273: In language version 14.0, 'field' is a keyword within a property accessor. Rename the variable or use the identifier '@field' instead. --- Xamarin.MacDev/EntitlementExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.MacDev/EntitlementExtensions.cs b/Xamarin.MacDev/EntitlementExtensions.cs index 14aed42..750b91a 100644 --- a/Xamarin.MacDev/EntitlementExtensions.cs +++ b/Xamarin.MacDev/EntitlementExtensions.cs @@ -81,7 +81,7 @@ public static string [] AllKeys { if (allKeys == null) { allKeys = typeof (EntitlementKeys).GetFields (BindingFlags.Public | BindingFlags.Static). Where (f => f.FieldType == typeof (string)). - Select (field => (string) field.GetValue (null)). + Select (f => (string) f.GetValue (null)). ToArray (); }