public INotificationOutput GenerateNotificationOutput(INotificationInput data) { if (!(data is DummyNotificationInput)) { throw new ArgumentException("Invalid type specified", "data"); } return(something...); }
private static NotificationInputPart ConvertInputToInputXmlPart(INotificationInput input) { var textBox = input as NotificationTextBox; var selectionBox = input as NotificationSelectionBox; if (textBox != null) { return textBox.ToXmlPart(); } if (selectionBox != null) { return selectionBox.ToXmlPart(); } throw new InvalidOperationException( string.Format("The '{0}' input type is not supported.", input.GetType())); }
private static NotificationInputPart ConvertInputToInputXmlPart(INotificationInput input) { var textBox = input as NotificationTextBox; var selectionBox = input as NotificationSelectionBox; if (textBox != null) { return(textBox.ToXmlPart()); } if (selectionBox != null) { return(selectionBox.ToXmlPart()); } throw new InvalidOperationException( string.Format("The '{0}' input type is not supported.", input.GetType())); }
public INotificationOutput GenerateNotificationOutput(INotificationInput data) { throw new NotImplementedException(); }