What's the reason for using Dependency injection to get a ViewModel from a view instead of just specifying the class?

前端 未结 0 595
生来不讨喜
生来不讨喜 2020-12-30 20:34

I have seen this example:

public static class Startup
{
    public static IServiceProvider ServiceProvider { get; set; }

    public static IServiceProvider I         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题