/// <summary> /// Determines whether the specified property is an explictly implemented interface member. /// </summary> /// <param name="property">The method.</param> /// <returns><c>true</c> if the specified property is an explictly implemented interface member; otherwise, <c>false</c>.</returns> public static bool IsExplicitlyImplementedInterfaceMember(this PropertyDef property) { return(property.AllMethods().Any(IsExplicitlyImplementedInterfaceMember)); }
/// <summary> /// Determines whether the specified property is static. /// </summary> /// <param name="property">The property.</param> /// <returns><c>true</c> if the specified property is static; otherwise, <c>false</c>.</returns> public static bool IsStatic(this PropertyDef property) { return(property.AllMethods().Any(method => method.IsStatic)); }
/// <summary> /// Determines whether the specified property is abstract. /// </summary> /// <param name="property">The property.</param> /// <returns><see langword="true" /> if the specified property is abstract; otherwise, <see langword="false" /></returns> public static bool IsAbstract(this PropertyDef property) => property.AllMethods().Any(method => method.IsAbstract);
/// <summary> /// Determines whether the specified property is family or assembly. /// </summary> /// <param name="property">The property.</param> /// <returns><c>true</c> if the specified property is family or assembly; otherwise, <c>false</c>.</returns> public static bool IsFamilyOrAssembly(this PropertyDef property) { return(property.AllMethods().Any(method => method.IsFamilyOrAssembly)); }
/// <summary> /// Determines whether this instance has private flags for all prop methods. /// </summary> /// <param name="property">The property.</param> /// <returns> /// <c>true</c> if the specified property is family; otherwise, <c>false</c>. /// </returns> public static bool HasAllPrivateFlags(this PropertyDef property) { return(property.AllMethods().All(method => method.HasPrivateFlags())); }