Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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);
Ejemplo n.º 4
0
 /// <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));
 }
Ejemplo n.º 5
0
 /// <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()));
 }