public bool TryParse(string value, bool ignoreCase, out Enum result, EnumFormat[] formats) { bool success = _cache.TryParse(value, ignoreCase, out TInt resultAsInt, formats); result = ToEnum(resultAsInt); return(success); }