private static string PropertyValueToString(object propertyValue)
        {
            Type type = propertyValue.GetType();

            if (IsEnum(type))
            {
                EnumStringAttribute enumStringAttr = GetEnumStringAttribute(propertyValue as Enum);

                if (enumStringAttr != null)
                {
                    return(enumStringAttr.String);
                }
            }

            else if (propertyValue is bool)
            {
                if ((bool)propertyValue)
                {
                    return("true");
                }
                else
                {
                    return("false");
                }
            }

            return(propertyValue.ToString());
        }
        private static string PropertyValueToString(object propertyValue)
        {
            Type type = propertyValue.GetType();

            if (IsEnum(type))
            {
                EnumStringAttribute enumStringAttr = GetEnumStringAttribute(propertyValue as Enum);

                if (enumStringAttr != null)
                {
                    return(enumStringAttr.String);
                }
            }

            return(propertyValue.ToString());
        }