private static void ShowInternal(Activity activity, View snackbarHolderView, object content, float duration, ToastImpl toast) { Snackbar snackbar = null; var selector = activity.GetBindingMemberValue(AttachedMembersDesign.Activity.SnackbarTemplateSelector); if (selector != null) snackbar = (Snackbar) selector.SelectTemplate(content, snackbarHolderView); if (snackbar == null) snackbar = Snackbar.Make(snackbarHolderView, content.ToStringSafe("(null)"), (int) duration); toast.Show(snackbar, duration); }