public static bool IsIndexedProperty(MemberInfo member) { ValidationUtils.ArgumentNotNull(member, "member"); PropertyInfo propertyInfo = member as PropertyInfo; return(propertyInfo != null && ReflectionUtils.IsIndexedProperty(propertyInfo)); }
public static bool IsIndexedProperty(MemberInfo member) { ValidationUtils.ArgumentNotNull(member, "member"); PropertyInfo propertyInfo = member as PropertyInfo; if (propertyInfo == null) { return(false); } return(ReflectionUtils.IsIndexedProperty(propertyInfo)); }
/// <summary>Determines whether the member is an indexed property.</summary> /// <param name="member">The member.</param> /// <returns> /// <c>true</c> if the member is an indexed property; otherwise, <c>false</c>. /// </returns> public static bool IsIndexedProperty(MemberInfo member) { ValidationUtils.ArgumentNotNull((object)member, nameof(member)); return(member is PropertyInfo property && ReflectionUtils.IsIndexedProperty(property)); }