/// <summary> /// Gets the <see cref="PropertyHandlerAttribute"/> if present. /// </summary> /// <returns>The instance of <see cref="PropertyHandlerAttribute"/>.</returns> public PropertyHandlerAttribute GetPropertyHandlerAttribute() { if (m_isPropertyHandlerAttributeWasSet) { return(m_propertyHandlerAttribute); } m_isPropertyHandlerAttributeWasSet = true; return(m_propertyHandlerAttribute = PropertyInfo.GetCustomAttribute(typeof(PropertyHandlerAttribute)) as PropertyHandlerAttribute); }
/// <summary> /// Gets the <see cref="PropertyHandlerAttribute"/> if present. /// </summary> /// <returns>The instance of <see cref="PropertyHandlerAttribute"/>.</returns> public PropertyHandlerAttribute GetPropertyHandlerAttribute() { if (isPropertyHandlerAttributeWasSet) { return(propertyHandlerAttribute); } isPropertyHandlerAttributeWasSet = true; return(propertyHandlerAttribute = PropertyInfo.GetCustomAttribute(StaticType.PropertyHandlerAttribute) as PropertyHandlerAttribute); }