ApplicationSettings.Internal.PropertyHelper.GetSettingName C# (CSharp) Метод

GetSettingName() публичный статический Метод

Gets the name of the setting for the property. If property contains SettingPropertyAttribute then it is used. Otherwise property's name is returned.
public static GetSettingName ( PropertyInfo propertyInfo ) : string
propertyInfo System.Reflection.PropertyInfo /// The property info. ///
Результат string
        public static string GetSettingName(PropertyInfo propertyInfo)
        {
            var attribute = propertyInfo.GetCustomAttribute<SettingPropertyAttribute>();
            if (null != attribute && null != attribute.SettingName)
            {
                return attribute.SettingName;
            }

            return propertyInfo.Name;
        }