using System;
namespace IwbZero.IocNamed
{
///
/// 指定IocNamed
///
[AttributeUsage(AttributeTargets.Class)]
public class IocNamedAttribute : Attribute
{
///
/// 名称
///
public string Name { get; set; }
///
/// 是否使用全类名
///
public bool UseFullName { get; set; }
public IocNamedAttribute()
{
}
public IocNamedAttribute(string name = "", bool useFullName = false)
{
Name = name;
UseFullName = useFullName;
}
public bool NameIsNotNull()
{
return !string.IsNullOrEmpty(Name);
}
}
}