private static SupportedPlatforms DeterminePlatform()
{
#if PCL
return SupportedPlatforms.PCL;
#elif NET35
throw new System.NotSupportedException("NET35 is not supported");
#elif NET40
return SupportedPlatforms.NET40;
#elif NET45
return SupportedPlatforms.NET45;
#elif NET46
return SupportedPlatforms.NET46;
#elif NET50
return SupportedPlatforms.NET50;
#elif SL5
return SupportedPlatforms.Silverlight5;
#elif WP80
return SupportedPlatforms.WindowsPhone80;
#elif WP81 && SILVERLIGHT
return SupportedPlatforms.WindowsPhone81Silverlight;
#elif WP81 && NETFX_CORE
return SupportedPlatforms.WindowsPhone81Runtime;
#elif WIN80
return SupportedPlatforms.WindowsRuntime80;
#elif WIN81
return SupportedPlatforms.WindowsRuntime81;
#elif UAP100
return SupportedPlatforms.WindowsUniversal100;
#elif ANDROID
return SupportedPlatforms.Android;
#elif IOS
return SupportedPlatforms.iOS;
#elif XAMARIN_FORMS
return SupportedPlatforms.XamarinForms;
#else
throw new System.NotSupportedException("Unknown platform is not supported");
#endif
}
}