AudioSession.ParseIconLocationPath C# (CSharp) Méthode

ParseIconLocationPath() private static méthode

private static ParseIconLocationPath ( string location, string &path ) : int
location string
path string
Résultat int
        private static int ParseIconLocationPath(string location, out string path)
        {
            if (location == null)
                throw new ArgumentNullException(nameof(location));
            path = string.Copy(location);
            int index = PathParseIconLocation(path);
            int pos = path.LastIndexOf('\0');
            if (pos >= 0)
            {
                path = path.Substring(0, pos);
            }
            if (path.StartsWith("@"))
            {
                path = path.Substring(1);
            }
            return index;
        }
    }