AsString() public method

public AsString ( ) : string
return string
        bool EndsWith(JToken token, ODataFilterItem item)
        {
            if (token == null)
            {
                return(false);
            }

            return(token.ToObject <string>().EndsWith(item.AsString()));
        }
        bool Contains(JToken token, ODataFilterItem item)
        {
            if (token == null)
            {
                return(false);
            }

            return(token.ToObject <string>().Contains(item.AsString()));
        }
        bool WhereNotEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
            {
                return(false);
            }

            switch (item.Type)
            {
            case ODataValueType.DateTime:
                return(token.ToObject <DateTime>() != item.AsDateTime());

            case ODataValueType.Number:
                return(token.ToObject <double>() != item.AsNumber());

            default:
                return(token.ToObject <string>() != item.AsString());
            }
        }
        bool LessThanOrEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
            {
                return(false);
            }

            switch (item.Type)
            {
            case ODataValueType.DateTime:
                return(token.ToObject <DateTime>() <= item.AsDateTime());

            case ODataValueType.Number:
                return(token.ToObject <double>() <= item.AsNumber());

            case ODataValueType.String:
                return(String.Compare(token.ToObject <string>(), item.AsString(), StringComparison.OrdinalIgnoreCase) <= 0);

            default:
                return(false);
            }
        }
        bool GreaterThanOrEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
            {
                return(false);
            }

            switch (item.Type)
            {
            case ODataValueType.DateTime:
                return(token.ToObject <DateTime>() >= item.AsDateTime());

            case ODataValueType.Number:
                return(token.ToObject <double>() >= item.AsNumber());

            case ODataValueType.String:
                return(token.ToObject <string>().StartsWith(item.AsString()));

            default:
                return(false);
            }
        }
        bool WhereNotEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
                return false;

            switch (item.Type)
            {
                case ODataValueType.DateTime:
                    return token.ToObject<DateTime>() != item.AsDateTime();
                case ODataValueType.Number:
                    return token.ToObject<double>() != item.AsNumber();
                default:
                    return token.ToObject<string>() != item.AsString();
            }
        }
        bool StartsWith(JToken token, ODataFilterItem item)
        {
            if (token == null)
                return false;

            return token.ToObject<string>().StartsWith(item.AsString());
        }
        bool LessThanOrEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
                return false;

            switch (item.Type)
            {
                case ODataValueType.DateTime:
                    return token.ToObject<DateTime>() <= item.AsDateTime();
                case ODataValueType.Number:
                    return token.ToObject<double>() <= item.AsNumber();
                case ODataValueType.String:
                    return String.Compare(token.ToObject<string>(), item.AsString(), StringComparison.OrdinalIgnoreCase) <= 0;
                default:
                    return false;
            }
        }
        bool GreaterThanOrEquals(JToken token, ODataFilterItem item)
        {
            if (token == null)
                return false;

            switch (item.Type)
            {
                case ODataValueType.DateTime:
                    return token.ToObject<DateTime>() >= item.AsDateTime();
                case ODataValueType.Number:
                    return token.ToObject<double>() >= item.AsNumber();
                case ODataValueType.String:
                    return token.ToObject<string>().StartsWith(item.AsString());
                default:
                    return false;
            }
        }
        bool Contains(JToken token, ODataFilterItem item)
        {
            if (token == null)
                return false;

            return token.ToObject<string>().Contains(item.AsString());
        }