|
@@ -68,27 +68,9 @@ namespace System.Reactive.PlatformServices
|
|
// expectation it'd be pretty hard to turn on interception dynamically
|
|
// expectation it'd be pretty hard to turn on interception dynamically
|
|
// upon a debugger attach event, so we should make this check early.
|
|
// upon a debugger attach event, so we should make this check early.
|
|
//
|
|
//
|
|
- // In the initial release of v2.0 (RTM), we won't have the corresponding
|
|
|
|
- // debugger assembly available yet, so the dynamic load would always
|
|
|
|
- // fail. We also don't want to take the price of (an attempt to) a dynamic
|
|
|
|
- // assembly load for the regular production case.
|
|
|
|
- //
|
|
|
|
if (Debugger.IsAttached)
|
|
if (Debugger.IsAttached)
|
|
{
|
|
{
|
|
- var ifType = t.GetTypeInfo();
|
|
|
|
-
|
|
|
|
- var asm = new AssemblyName(ifType.Assembly.FullName!)
|
|
|
|
- {
|
|
|
|
- Name = "System.Reactive"
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- var name = "System.Reactive.Linq.QueryDebugger, " + asm.FullName;
|
|
|
|
-
|
|
|
|
- var dbg = Type.GetType(name, false);
|
|
|
|
- if (dbg != null)
|
|
|
|
- {
|
|
|
|
- return (T?)Activator.CreateInstance(dbg);
|
|
|
|
- }
|
|
|
|
|
|
+ return (T)(object)new QueryDebugger();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|