Esempio n. 1
0
            private string ComputeEnvVar()
            {
                Debug.Assert(MiscHelpers.IsAnEnvVarPath(CurrentPath));
                Debug.Assert(CurrentPath[0] == MiscHelpers.ENVVAR_PERCENT);
                var indexClose = CurrentPath.IndexOf(MiscHelpers.ENVVAR_PERCENT, 1);

                Debug.Assert(indexClose > 1);
                return(CurrentPath.Substring(0, indexClose + 1));
            }
            private string ComputeEnvVar()
            {
                Debug.Assert(MiscHelpers.IsAnEnvVarPath(m_PathString));
                Debug.Assert(m_PathString[0] == MiscHelpers.ENVVAR_PERCENT);
                var indexClose = m_PathString.IndexOf(MiscHelpers.ENVVAR_PERCENT, 1);

                Debug.Assert(indexClose > 1);
                return(m_PathString.Substring(0, indexClose + 1));
            }