File: System\ServiceModel\Activities\Presentation\Converters\XPathMessageQuerySearchableStringConverter.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System.Activities.Core.Presentation.csproj (System.Activities.Core.Presentation)
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
 
namespace System.ServiceModel.Activities.Presentation.Converters
{
    using System.Activities;
    using System.Activities.Presentation.Converters;
    using System.Collections.Generic;
    using System.ServiceModel;
 
    class XPathMessageQuerySearchableStringConverter : SearchableStringConverter
    {
        public override IList<string> Convert(object value)
        {
            IList<string> results = new List<string>();
            XPathMessageQuery messageQuery = value as XPathMessageQuery;
            if (messageQuery != null)
            {
                results.Add(messageQuery.Expression);
            }
            return results;
        }
    }
}