Description: AutomaticPropertiesDefaultValues
Article_src.zip
PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static)
for (int i = 0 i < props.Length i++)
{
PropertyInfo prop = props[i]
if (prop.GetCustomAttributes(true).Length > 0)
{
object[] defaultValueAttribute = prop.GetCustomAttributes(typeof(DefaultValueAttribute), true)
if (defaultValueAttribute != null)
{
DefaultValueAttribute dva = defaultValueAttribute[0] as DefaultValueAttribute
if(dva != null)
prop.SetValue(o, dva.Value, null)
}
To Search:
- [ExecuteCommand] - ExecuteCommand.zip try { //Asynchronousl
- [EXP5] - 华恒company ARM9-EDU-R1 of experimental pl
File list (Check if you may need any files):