diff --git a/sample/Sample/MauiProgram.cs b/sample/Sample/MauiProgram.cs index 96838332..87629590 100644 --- a/sample/Sample/MauiProgram.cs +++ b/sample/Sample/MauiProgram.cs @@ -1,5 +1,4 @@ using Acr.UserDialogs; -using Samples; namespace Samples; diff --git a/src/Acr.UserDialogs/Platforms/Shared/UserDialogs.cs b/src/Acr.UserDialogs/Platforms/Shared/UserDialogs.cs index cfb46810..415000c6 100644 --- a/src/Acr.UserDialogs/Platforms/Shared/UserDialogs.cs +++ b/src/Acr.UserDialogs/Platforms/Shared/UserDialogs.cs @@ -1,23 +1,20 @@ -using System; - - -namespace Acr.UserDialogs +namespace Acr.UserDialogs { public static partial class UserDialogs { - #if NETSTANDARD - static IUserDialogs currentInstance; - public static IUserDialogs Instance - { - get - { - if (currentInstance == null) - throw new ArgumentException("[Acr.UserDialogs] This is the bait library, not the platform library. You must install the nuget package in your main executable/application project"); - - return currentInstance; - } - set => currentInstance = value; - } - #endif + // #if NETSTANDARD + // static IUserDialogs currentInstance; + // public static IUserDialogs Instance + // { + // get + // { + // if (currentInstance == null) + // throw new ArgumentException("[Acr.UserDialogs] This is the bait library, not the platform library. You must install the nuget package in your main executable/application project"); + // + // return currentInstance; + // } + // set => currentInstance = value; + // } + // #endif } }