Пример #1
0
        private bool IsReferingToFile(string text)
        {
            switch (HS.GetOSType())
            {
            case eOSType.windows:
                return((text.Length > 2) && text.Substring(1, 2).Equals(":\\"));

            case eOSType.linux:
                return((text.Length > 1) && text.Substring(0, 1).Equals("/"));

            default:
                throw new ArgumentException("Unknown OS Type");
            }
        }