/// <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)); }
/// <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; }