[so] is not a free code writing service. You are expected to try to write the code yourself. After doing more research if you have a problem you can post what you've tried with a clear explanation of what isn't working and providing a [mcve]. I suggest reading [ask] a good question and the perfect question. Also, be sure to take the [tour].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Ninject.Activation; | |
using System; | |
using System.Reflection; | |
namespace Ninject.Demo.Infrastructure { | |
public class MyProvider : IProvider { | |
public Type Type => typeof(Persisrer<>); | |
public object Create(IContext context) { | |
var genericArguments = context.GenericArguments; |