Jayrock.Json.Conversion.JsonMemberNamingConventionAttribute.IPropertyDescriptorCustomization C# (CSharp) Method

IPropertyDescriptorCustomization() private method

private IPropertyDescriptorCustomization ( PropertyDescriptor property ) : void
property System.ComponentModel.PropertyDescriptor
return void
        void IPropertyDescriptorCustomization.Apply(PropertyDescriptor property)
        {
            if (property == null)
                throw new ArgumentNullException("property");

            NamingConvention naming = Convention;
            UnderscoreConvention underscoring = Underscores;
            if (naming == NamingConvention.None && underscoring == UnderscoreConvention.None)
                return;
            SetName(property, FormatName(FormatName(property.Name, underscoring), naming));
        }