internal static string[] ToPath(Uri uriPath, HostNameComparisonMode hostNameComparisonMode, bool includePortInComparison)
            {
                if (null == uriPath)
                {
                    return(new string[0]);
                }
                UriSegmentEnum <TItem> enum2 = new UriSegmentEnum <TItem>(uriPath);

                return(enum2.GetSegments(hostNameComparisonMode, includePortInComparison));
            }
Exemplo n.º 2
0
            internal static string[] ToPath(Uri uriPath, HostNameComparisonMode hostNameComparisonMode,
                                            bool includePortInComparison)
            {
                if (null == uriPath)
                {
                    return(new string[0]);
                }
                UriSegmentEnum segmentEnum = new UriSegmentEnum(uriPath); // struct

                return(segmentEnum.GetSegments(hostNameComparisonMode, includePortInComparison));
            }