怎样给类的属性的Attributes赋值????
bryht 2010-05-13 10:13:06 MyClass my=new MyClass();
也就是给my.GetType().GetProperties()[0].Attributes赋值
public class MyClass
{
[ColumnAttribute(IsPK=true)]//这样设置了取出的my.GetType().GetProperties()[0].Attributes为None
public int SID{get;set;}
public string Name{get;set;}
}
想问各位大侠,应该怎样给类的属性的Attributes赋值啊?????