Ejemplo n.º 1
0
        private Comparison <IResource> IncludePatternOrder()
        {
            return((x, y) =>
            {
                int xIndex = Include.GetMatchIndex(x.VirtualPath);
                int yIndex = Include.GetMatchIndex(y.VirtualPath);

                return xIndex - yIndex;
            });
        }
Ejemplo n.º 2
0
        private Comparison <ResourceWithMatchingPath> IncludePatternOrder()
        {
            return((ResourceWithMatchingPath x, ResourceWithMatchingPath y) =>
            {
                int xIndex = Include.GetMatchIndex(x.MatchingPath);
                int yIndex = Include.GetMatchIndex(y.MatchingPath);

                return xIndex - yIndex;
            });
        }