There are some extension methods I had used and share for you
Get all instances which are T
type from Assembly.
It will return IEnumerable<T>
instances list.
Here is a sample
Assembly.GetExecutingAssembly().GetInstancesByAssembly<ClassBase>();
Register AutoMapper Profile
class from assemblies.
Here is a sample
ContainerBuilder builder = new ContainerBuilder();
builder.AddAutoMapperProfileFromAssembly(typeof(AuditLogProfile).Assembly,...);