Override the RaiseCallbackEvent(string eventArgument) method from ICallbackEventHandler interface. Is it possible?

StackOverflow https://stackoverflow.com/questions/5060058

  •  15-11-2019
  •  | 
  •  

سؤال

I need to implement the ICallbackEventHandler interface in C#, but I need slightly different logic... The thing is, that the RaiseCallbackEvent method accepts string as input argument, but I need it to be say, XmlDocument, or some other not-simple data type passed from the javascipt code.

Is it possible, and what is the best way to accomplish this?

Thanks.

هل كانت مفيدة؟

المحلول

No, the signature of your method must match the interface exactly.
But you can send in XmlDocument.OuterXml as the string.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top