BExIS.Xml.Models.Mapping.XmlMapper.GetRoute C# (CSharp) Method

GetRoute() public method

public GetRoute ( string sourceXPath ) : XmlMappingRoute
sourceXPath string
return XmlMappingRoute
        public XmlMappingRoute GetRoute(string sourceXPath)
        {
            if (Routes.Where(x => x.Source.XPath.Equals(sourceXPath)).Count() > 0)
            {
                return Routes.Where(x => x.Source.XPath.Equals(sourceXPath)).First();
            }

            return null;
        }