Simplify CreateFromString MethodName

This commit is contained in:
ClemensFischer 2024-04-11 15:41:05 +02:00
parent 5ad567239c
commit e642846e7d
4 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ namespace MapControl
/// A geographic bounding box with south and north latitude and west and east longitude values in degrees.
/// </summary>
#if WINUI || UWP
[Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.BoundingBox.Parse")]
[Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")]
#else
[System.ComponentModel.TypeConverter(typeof(BoundingBoxConverter))]
#endif

View file

@ -11,7 +11,7 @@ namespace MapControl
/// A geographic location with latitude and longitude values in degrees.
/// </summary>
#if WINUI || UWP
[Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.Location.Parse")]
[Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")]
#else
[System.ComponentModel.TypeConverter(typeof(LocationConverter))]
#endif

View file

@ -13,7 +13,7 @@ namespace MapControl
/// and calculation of great circle and rhumb line locations.
/// </summary>
#if WINUI || UWP
[Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.LocationCollection.Parse")]
[Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")]
#else
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
#endif

View file

@ -18,7 +18,7 @@ namespace MapControl
/// Provides the download Uri or ImageSource of map tiles.
/// </summary>
#if WINUI || UWP
[Windows.Foundation.Metadata.CreateFromString(MethodName = "MapControl.TileSource.Parse")]
[Windows.Foundation.Metadata.CreateFromString(MethodName = "Parse")]
#else
[System.ComponentModel.TypeConverter(typeof(TileSourceConverter))]
#endif