I've got interface:
Public Interface ICSIItem
Sub Initialize()
Event AnswerValueChanged(ByVal sender As Object, ByVal e As NotebookAnswerChangedEventArgs)
Property DataContext() As Object
End Interface
and converter http://www.developerfusion.com/tools/convert/vb-to-csharp/
public interface ICSIItem
{
void Initialize();
event AnswerValueChangedEventHandler AnswerValueChanged;
delegate void AnswerValueChangedEventHandler(object sender, NotebookAnswerChangedEventArgs e);
object DataContext { get; set; }
}
and resharper says me that delegate cannot be in interface.
This is NotebookAnswerChangedEventArgs class
public class NotebookAnswerChangedEventArgs : System.EventArgs
{
public string NewAnswer;
public string PreviousAnswer;
public NotebookAnswerChangedEventArgs(string newAnswer, string previousAnswer) : base()
{
this.NewAnswer = newAnswer;
this.PreviousAnswer = previousAnswer;
}
}
Could you help with this converting and please for better converter site, because that is very poor :/