namespace DS.Module.Core.Modules;
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class DSDependsOnAttribute : Attribute, IDependedTypesProvider
{
public DSDependsOnAttribute(params Type[] dependedTypes)
{
DependedTypes = dependedTypes ?? new Type[0];
}
///
/// 依赖类型集合
///
private Type[] DependedTypes { get; }
///
/// 得到依赖类型集合
///
///
public Type[] GetDependedTypes()
{
return DependedTypes;
}
}