1
如何從該屬性獲取數據成員(MethodInfo,PropertyInfo等)的信息。該屬性應用到的成員的DataMember信息
[Custom]
public void MethodA()
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
sealed class PluginInitAttribute : Attribute
{
public CustomAttribute()
{
//Get MethodA's MethodInfo here
}
}
}提前
TNX!