Esempio n. 1
0
 /// <summary>
 /// Determines whether the specified entity has all of the specified attributes.
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <param name="attributes">The attributes to check for.</param>
 /// <returns><c>true</c> if the entity has all of the specified attributes, otherwise, <c>false</c></returns>
 public static bool HasAll(this IHaveAttributes entity, AttributeMask attributes)
 {
     return((entity.attributes & attributes) == attributes);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageAttributesChanged"/> class.
 /// </summary>
 /// <param name="entity">The entity.</param>
 public MessageAttributesChanged(IHaveAttributes entity)
 {
     this.entity = entity;
 }