© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
Thinker

Creating an instance of a class using DI [Answered]

This is purely just out of curiosity. If you have a class which takes some arguments in its ctor and you want to create an instance of the class using some types registered in DI, is there any simple way to do that?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

accessing an instance of a class in another class
C#CC# / help
3y ago
How to access wanted property of a class instance? [Answered]
C#CC# / help
4y ago