I'm using MediatR alongside ReactiveUI - and both of them have the Unit
type, and seems like they don't like each other:
Everytime both namespace are imported (MediatR
and System.Reactive
), I need to use using
to distinguish between them two (normally Unit
from System.Reactive
is used - since it's baked into ReactiveUI
)
May I know, is there any approach other than this (and inserting fully qualified name, which is kinda verbose)?
using MediatR;
using System.Reactive;
using Unit = System.Reactive.Unit;
// ...
Unit a;
// or System.Reactive.Unit a;
language-ext also has its own Unit
type... Is there any project that aims to unify the Unit
type in .NET?