private Type ValueToCompareToType(IFormatProvider provider)
        {
            Type type = Value as Type;

            if (type != null)
            {
                return(type);
            }

            string name = ValueToCompareToString(provider, true);

            if (string.IsNullOrEmpty(name))
            {
                return(null);
            }

            return(TypeResolutionService.ResolveType(name));
        }