Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Aug 2, 2024
1 parent b38132e commit ac9350b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
1 change: 0 additions & 1 deletion sample/Sample/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Acr.UserDialogs;
using Samples;

namespace Samples;

Expand Down
33 changes: 15 additions & 18 deletions src/Acr.UserDialogs/Platforms/Shared/UserDialogs.cs
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit ac9350b

Please sign in to comment.