예제 #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));
 }
예제 #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;
 }