Example #1
0
 /// <summary>
 ///     Determines whether one or more flag are
 ///     set in the <see cref="Flags"/> property.
 /// </summary>
 /// <param name="flag">The flag (or flags) to check.</param>
 public bool HasFlag(LocalStateFlag flag)
 {
     return(Flags.HasFlag(flag));
 }
Example #2
0
 /// <summary>
 ///     Sets the specified flag in the
 ///     <see cref="Flags"/> property.
 /// </summary>
 /// <param name="flag">The flag to set.</param>
 public void SetFlag(LocalStateFlag flag)
 {
     Flags = Flags | flag;
 }