Skip to content

Instantly share code, notes, and snippets.

@pedrogk
Last active August 29, 2015 14:21
Show Gist options
  • Save pedrogk/dae901a6c8322f170152 to your computer and use it in GitHub Desktop.
Save pedrogk/dae901a6c8322f170152 to your computer and use it in GitHub Desktop.
var osName = string.Empty;
if (Device.OS == TargetPlatform.iOS)
osName = "Hola iOS!";
if (Device.OS == TargetPlatform.Android)
osName = "Hola Droid!";
if (Device.OS == TargetPlatform.WinPhone)
osName = "Hola WinPhone!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment