private void ApplyTechnicalPropertyNames(IEnumerable <PropertyRule> propertyRules) { foreach (var propertyRule in propertyRules) { propertyRule.PropertyName = _memberInformationNameResolver.GetPropertyName(PropertyInfoAdapter.Create(propertyRule.GetPropertyInfo())); } }
public bool TryGetPropertyDisplayName( IPropertyInformation propertyInformation, ITypeInformation typeInformationForResourceResolution, out string result) { ArgumentUtility.CheckNotNull("propertyInformation", propertyInformation); ArgumentUtility.CheckNotNull("typeInformationForResourceResolution", typeInformationForResourceResolution); result = GetStringOrDefault( typeInformationForResourceResolution, propertyInformation.Name, _memberInformationNameResolver.GetPropertyName(propertyInformation), "property:"); return(result != null); }
protected string GetPropertyName() { return(_nameResolver.GetPropertyName(PropertyInfo)); }