private static void SetConfigValueType(ConfigAttribute configAttr,Type propertyType)
{
switch (propertyType.ToString()) {
case "System.String":
configAttr.ValueType = ConfigValueType.String;
break;
case "System.Boolean":
configAttr.ValueType = ConfigValueType.Bool;
break;
case "System.Int32":
case "System.Double":
configAttr.ValueType = ConfigValueType.Number;
break;
default:
configAttr.ValueType = ConfigValueType.String;
break;
}
}