/// <summary> /// Removes a value from the caller. /// </summary> // <typeparam name="T">The generic value type.</typeparam> /// <param name="type">The enum to perform this function on.</param> /// <param name="value">The value to be checked for.</param> /// <returns>An object of the calling type with the value remove from it.</returns> /// Contributed by Russell Dehart public static T Remove <T>(this System.Enum type, ThreadStaticAttribute value) { try { int t = (int)(object)type; int v = (int)(object)value; return((T)(Object)(t & ~v)); } catch (Exception ex) { String typeName = typeof(T).Name; throw new ArgumentException($"Could not remove value from enumerated type'{typeName}'", ex); } }
public bool IsSatisfiedBy(ThreadStaticAttribute obj) { throw new NotImplementedException(); }