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
publicabstractclassA;publicclassA1:A;
internal class Program
{staticvoidMain(string[]args){varcontainer=newContainer();container.Register<object,A1>(serviceKey:"A1");vardecorateMethod=typeof(Program).SingleMethod(nameof(DecoratorA),true);container.Register<object>(made:Made.Of(r =>decorateMethod),setup:Setup.DecoratorOf<A>());varres=container.Resolve<object>("A1",args:[DateTime.Now]);//res is DateTime}privatestaticobjectDecoratorA(objectt){//t is DateTimereturnt;}}
Why is the parameter t of the incoming method DecoratorA in this case of type DateTime?
The above code may seem strange, but in Prism, the View is registered as object, so here's an example of the easiest way to reproduce it.
The text was updated successfully, but these errors were encountered:
Steps:
Why is the parameter
t
of the incoming methodDecoratorA
in this case of typeDateTime
?The above code may seem strange, but in Prism, the View is registered as
object
, so here's an example of the easiest way to reproduce it.The text was updated successfully, but these errors were encountered: