PlatformEnlightenmentProvider
(Infrastructure) Provider for platform-specific framework enlightenments.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace System.Reactive.PlatformServices
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static class PlatformEnlightenmentProvider
{
private static IPlatformEnlightenmentProvider _current = CreatePlatformProvider();
public static IPlatformEnlightenmentProvider Current {
get {
return _current;
}
set {
if (value == null)
throw new ArgumentNullException("value");
_current = value;
}
}
private static IPlatformEnlightenmentProvider CreatePlatformProvider()
{
return new CurrentPlatformEnlightenmentProvider();
}
}
}