Skip to content

n3oHuang/ExtenionTool

 
 

Repository files navigation

Build status

ExtenionTool

There are some extension methods I had used and share for you


GetInstancesByAssembly<T>

Get all instances which are T type from Assembly.

It will return IEnumerable<T> instances list.

Here is a sample

Assembly.GetExecutingAssembly().GetInstancesByAssembly<ClassBase>();

AddAutoMapperProfileFromAssembly

Register AutoMapper Profile class from assemblies.

Here is a sample

ContainerBuilder builder = new ContainerBuilder();
builder.AddAutoMapperProfileFromAssembly(typeof(AuditLogProfile).Assembly,...);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.1%
  • Smalltalk 17.5%
  • Batchfile 0.4%