+2009-07-10 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ClientBase.cs : some of Silverlight API are backported to full CLR.
+
2009-07-10 Atsushi Enomoto <atsushi@ximian.com>
* DuplexChannelFactory.cs : fill missing members.
InnerChannel.DisplayInitializationUI ();
}
-#if NET_2_1
protected T GetDefaultValueForInitialization<T> ()
{
return default (T);
void RunCompletedCallback (SendOrPostCallback callback, InvokeAsyncCompletedEventArgs args)
{
+#if !NET_2_1
+ callback (args);
+#else
object dispatcher = dispatcher_main_property.GetValue (null, null);
if (dispatcher == null) {
callback (args);
}
};
dispatcher_begin_invoke_method.Invoke (dispatcher, new object [] {a, new object [] {this, new EventArgs ()}});
+#endif
}
protected void InvokeAsync (BeginOperationDelegate beginOperationDelegate,
begin_async_result = beginOperationDelegate (inValues, cb, userState);
}
IAsyncResult begin_async_result;
-#else
+
+#if !NET_2_1
void IDisposable.Dispose ()
{
Close ();
#endregion
-#if NET_2_1
- protected
-#else
- internal
-#endif
- class InvokeAsyncCompletedEventArgs : AsyncCompletedEventArgs
+ protected class InvokeAsyncCompletedEventArgs : AsyncCompletedEventArgs
{
internal InvokeAsyncCompletedEventArgs (object [] results, Exception error, bool cancelled, object userState)
: base (error, cancelled, userState)