Example #1
0
        internal string PathToReference(string referenceName)
        {
            int    length = this.assetName.LastIndexOfAny(new char[] { '\\', '/', Path.DirectorySeparatorChar });
            string str    = "";

            if (length != -1)
            {
                str = this.assetName.Substring(0, length);
            }
            return(ContentManager.CleanPath(Path.Combine(str, referenceName)));
        }