Skip to content

Instantly share code, notes, and snippets.

View Ershad95's full-sized avatar
:octocat:
Working from Asa Company

Ershad Raoufi Ershad95

:octocat:
Working from Asa Company
View GitHub Profile
@Ershad95
Ershad95 / CustomDependencyInjection.cs
Last active March 11, 2023 07:09
تزریق داینامیک وابستگی ها روی
public class CustomDependencyInjection : NopStartup
{
private static bool IsSubInterface(Type t1, Type t2)
{
if (!t2.IsAssignableFrom(t1))
return false;
if (t1.BaseType == null)
return true;