private static string GetSnackbarLocation(SnackbarLocation snackbarLocation) { switch (snackbarLocation) { case SnackbarLocation.Left: return("snackbar-left"); case SnackbarLocation.Right: return("snackbar-right"); default: return(null); } }
public static string GetName(this SnackbarLocation snackbarLocation) { switch (snackbarLocation) { case SnackbarLocation.Left: return("left"); case SnackbarLocation.Right: return("right"); case SnackbarLocation.None: default: return(null); } }
public static string GetName(this SnackbarLocation snackbarLocation) { switch (snackbarLocation) { case SnackbarLocation.Start: return("left"); case SnackbarLocation.End: return("right"); case SnackbarLocation.Default: default: return(null); } }