/// <summary> /// Returns true if the specified kind enum has the specified flags set. /// </summary> /// <param name="kind">The kind enum to test.</param> /// <param name="flag">The flag to look for.</param> /// <returns>true if the flag is set; false otherwise.</returns> internal static bool HasFlag(this ODataResourcePropertyKind kind, ODataResourcePropertyKind flag) { DebugUtils.CheckNoExternalCallers(); return((kind & flag) == flag); }
/// <summary> /// Returns true if the specified kind enum has the specified flags set. /// </summary> /// <param name="kind">The kind enum to test.</param> /// <param name="flag">The flag to look for.</param> /// <returns>true if the flag is set; false otherwise.</returns> internal static bool HasFlag(this ODataResourcePropertyKind kind, ODataResourcePropertyKind flag) { DebugUtils.CheckNoExternalCallers(); return (kind & flag) == flag; }