You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
586 B
C#

1 year ago
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];
}
/// <summary>
/// 依赖类型集合
/// </summary>
private Type[] DependedTypes { get; }
/// <summary>
/// 得到依赖类型集合
/// </summary>
/// <returns></returns>
public Type[] GetDependedTypes()
{
return DependedTypes;
}
}