here my code-
DateTimeDelegate dtdel = new DateTimeDelegate(GetCurrentDateTimeAt);
IAsyncResult async = dtdel.BeginInvoke(UserContext.Latitude.ToString(), UserContext.Longitude.ToString(), new AsyncCallback(DateTimeCallBack), null);
…
public DateTimeCallBack(IAsyncResult asy)
{
AsyncResult result = (AsyncResult)asy; // error 'AsyncResult' could not be found
}
what should I do?
The AsyncResult class is defined in the
System.Runtime.Remoting.Messagingnamespace. Make sure you have included it. You may also checkout the following article on MSDN.