You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
Some people have reported "ambiguous reference between 'System.IObserver<UniRx.Unit>' and 'UniRx.IObserver<UniRx.Unit>". That happens when UniRx is compiled with the Microsoft compiler, ie.:
IObserver is used without UniRx namespace
build platform is set to Windows Phone or Windows Store
UniRx is not located in “Assets/Plugins”, “Assets/Standard Assets” and “Assets/Pro Standard Assets”
Tuple and IProgress have same problem. Syste.IObserver[T] may not conflict but System.Tuple may conflict with other assets.
So I want to avoid use System namespace.
How about keep UniRx namespace and remove if NETFX_CORE?
We can not use fully qualified name for compatibility with WP and others.
However, I can permit it because probably there are few people use it.
...maybe.
Some people have reported "ambiguous reference between 'System.IObserver<UniRx.Unit>' and 'UniRx.IObserver<UniRx.Unit>". That happens when UniRx is compiled with the Microsoft compiler, ie.:
http://docs.unity3d.com/Manual/wp8-1-faq.html
I think this can be fixed by:
removing UniRx.IObserver from Observer.cs
creating a new file called IObserver.cs
put this in the file
if !NETFX_CORE
using System;
namespace System
{
public interface IObserver
{
void OnNext(T value);
void OnError(Exception error);
void OnCompleted();
}
}
endif
Drawback: any code code that referred to the interface with its fully qualified name "UniRx.IObserver" will break.
The text was updated successfully, but these errors were encountered: