Skip to content

Instantly share code, notes, and snippets.

@nkosihenry
nkosihenry / Infrastructure.cs
Created November 8, 2019 04:00
Ninject Internal Constructor Demo
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;

[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].