You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
|
|
|
namespace Utils.Attributes
|
|
|
{
|
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, Inherited = true)]
|
|
|
public sealed class DataClassAttribute : Attribute
|
|
|
{
|
|
|
public DataClassAttribute(string name)
|
|
|
{
|
|
|
_Name = name;
|
|
|
}
|
|
|
public DataClassAttribute()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
private string _Name;
|
|
|
public string Name { get { return _Name; } set { _Name = value; } }
|
|
|
public string Get()
|
|
|
{
|
|
|
return _Name;
|
|
|
}
|
|
|
}
|
|
|
}
|