From e642846e7dadbc1ff50284f6bd4204eb766be8e6 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 11 Apr 2024 15:41:05 +0200 Subject: [PATCH] Simplify CreateFromString MethodName --- MapControl/Shared/BoundingBox.cs | 2 +- MapControl/Shared/Location.cs | 2 +- MapControl/Shared/LocationCollection.cs | 2 +- MapControl/Shared/TileSource.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MapControl/Shared/BoundingBox.cs b/MapControl/Shared/BoundingBox.cs index 49ff5d4a..ccf29e33 100644 --- a/MapControl/Shared/BoundingBox.cs +++ b/MapControl/Shared/BoundingBox.cs @@ -11,7 +11,7 @@ namespace MapControl /// A geographic bounding box with south and north latitude and west and east longitude values in degrees. /// #if WINUI || UWP - [Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.BoundingBox.Parse")] + [Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")] #else [System.ComponentModel.TypeConverter(typeof(BoundingBoxConverter))] #endif diff --git a/MapControl/Shared/Location.cs b/MapControl/Shared/Location.cs index 2d970aaf..b2db9b75 100644 --- a/MapControl/Shared/Location.cs +++ b/MapControl/Shared/Location.cs @@ -11,7 +11,7 @@ namespace MapControl /// A geographic location with latitude and longitude values in degrees. /// #if WINUI || UWP - [Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.Location.Parse")] + [Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")] #else [System.ComponentModel.TypeConverter(typeof(LocationConverter))] #endif diff --git a/MapControl/Shared/LocationCollection.cs b/MapControl/Shared/LocationCollection.cs index 925274fa..701f45c5 100644 --- a/MapControl/Shared/LocationCollection.cs +++ b/MapControl/Shared/LocationCollection.cs @@ -13,7 +13,7 @@ namespace MapControl /// and calculation of great circle and rhumb line locations. /// #if WINUI || UWP - [Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.LocationCollection.Parse")] + [Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")] #else [System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))] #endif diff --git a/MapControl/Shared/TileSource.cs b/MapControl/Shared/TileSource.cs index cc60f285..7f4ac438 100644 --- a/MapControl/Shared/TileSource.cs +++ b/MapControl/Shared/TileSource.cs @@ -18,7 +18,7 @@ namespace MapControl /// Provides the download Uri or ImageSource of map tiles. /// #if WINUI || UWP - [Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.TileSource.Parse")] + [Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")] #else [System.ComponentModel.TypeConverter(typeof(TileSourceConverter))] #endif