NotificationsExtensions.Toasts.ToastContent.ConvertToActionsElement C# (CSharp) Méthode

ConvertToActionsElement() private static méthode

private static ConvertToActionsElement ( IToastActions actions ) : NotificationsExtensions.Toasts.Element_ToastActions
actions IToastActions
Résultat NotificationsExtensions.Toasts.Element_ToastActions
        private static Element_ToastActions ConvertToActionsElement(IToastActions actions)
        {
            if (actions is ToastActionsCustom)
                return (actions as ToastActionsCustom).ConvertToElement();

            else if (actions is ToastActionsSnoozeAndDismiss)
                return (actions as ToastActionsSnoozeAndDismiss).ConvertToElement();

            throw new NotImplementedException("Unknown actions type: " + actions.GetType());
        }