/// <summary> /// Check whether the given value for <see cref="ResourceTypeKind"/> is valid. If not, throw argument exception. /// </summary> /// <param name="kind">Value for ResourceTypeKind.</param> /// <param name="parameterName">Name of the parameter.</param> /// <exception cref="ArgumentException">If the value is not valid.</exception> private static void CheckResourceTypeKind(ResourceTypeKind kind, string parameterName) { if (kind < ResourceTypeKind.EntityType || kind > ResourceTypeKind.MultiValue) { throw new ArgumentException(Strings.General_InvalidEnumValue(kind.GetType().Name), parameterName); } }
internal static void CheckResourceTypeKind(ResourceTypeKind kind, string parameterName) { if ((kind < ResourceTypeKind.EntityType) || (kind > ResourceTypeKind.EntityCollection)) { throw new ArgumentException(System.Data.Services.Strings.InvalidEnumValue(kind.GetType().Name), parameterName); } }