EqualsIgnoreCase() 정적인 개인적인 메소드

static private EqualsIgnoreCase ( string s1, string s2 ) : bool
s1 string
s2 string
리턴 bool
예제 #1
0
        // Add a stream to the list of streams to intercept.
        //
        // Parameters:
        //  alwaysIntercept -   If true, then don't check whether the old stream and the new stream are the same.
        //                      SaveAs() will set this to true if oldStreamname is actually referring to a stream
        //                      on a remote machine.
        internal void AddStreamname(string oldStreamname, string newStreamname, bool alwaysIntercept)
        {
            //



            Debug.Assert(!String.IsNullOrEmpty(oldStreamname));

            if (String.IsNullOrEmpty(oldStreamname))
            {
                return;
            }

            if (!alwaysIntercept && StringUtil.EqualsIgnoreCase(oldStreamname, newStreamname))
            {
                return;
            }

            if (_streams == null)
            {
                _streams = new HybridDictionary(true);
            }

            _streams[oldStreamname] = new StreamUpdate(newStreamname);
        }
예제 #2
0
        // Add a stream to the list of streams to intercept.
        //
        // Parameters:
        //  alwaysIntercept -   If true, then don't check whether the old stream and the new stream are the same.
        //                      SaveAs() will set this to true if oldStreamname is actually referring to a stream
        //                      on a remote machine.
        internal void AddStreamname(string oldStreamname, string newStreamname, bool alwaysIntercept)
        {
            // TODO:
            // After reviewing all the code path, oldStreamname shouldn't be Null or Empty.  It actually
            // doesnt' make much sense if we're asked to intercept an null or empty stream.
            // However, since we're shipping Whidbey RC soon it is too risky to remove that code.
            // But I'll add Debug.Assert(!String.IsNullOrEmpty(oldStreamname)) to make sure my
            // analysis is correct.
            Debug.Assert(!string.IsNullOrEmpty(oldStreamname));

            if (string.IsNullOrEmpty(oldStreamname))
            {
                return;
            }

            if (!alwaysIntercept && StringUtil.EqualsIgnoreCase(oldStreamname, newStreamname))
            {
                return;
            }

            if (_streams == null)
            {
                _streams = new HybridDictionary(true);
            }

            _streams[oldStreamname] = new StreamUpdate(newStreamname);
        }
 private bool IsUserConfig(string configPath)
 {
     if (!StringUtil.EqualsIgnoreCase(configPath, "MACHINE/EXE/ROAMING_USER"))
     {
         return(StringUtil.EqualsIgnoreCase(configPath, "MACHINE/EXE/ROAMING_USER/LOCAL_USER"));
     }
     return(true);
 }
 internal void AddStreamname(string oldStreamname, string newStreamname, bool alwaysIntercept)
 {
     if (!string.IsNullOrEmpty(oldStreamname) && (alwaysIntercept || !StringUtil.EqualsIgnoreCase(oldStreamname, newStreamname)))
     {
         if (this._streams == null)
         {
             this._streams = new HybridDictionary(true);
         }
         this._streams[oldStreamname] = new StreamUpdate(newStreamname);
     }
 }
예제 #5
0
        // Add a stream to the list of streams to intercept.
        //
        // Parameters:
        //  alwaysIntercept -   If true, then don't check whether the old stream and the new stream are the same.
        //                      SaveAs() will set this to true if oldStreamname is actually referring to a stream
        //                      on a remote machine.
        internal void AddStreamname(string oldStreamname, string newStreamname, bool alwaysIntercept)
        {
            // After reviewing all the code paths, oldStreamname shouldn't be Null or Empty.
            // It actually doesn't make much sense if we're asked to intercept an null or empty stream.
            Debug.Assert(!string.IsNullOrEmpty(oldStreamname));

            if (string.IsNullOrEmpty(oldStreamname))
            {
                return;
            }

            if (!alwaysIntercept && StringUtil.EqualsIgnoreCase(oldStreamname, newStreamname))
            {
                return;
            }

            _streams ??= new HybridDictionary(true);

            _streams[oldStreamname] = new StreamUpdate(newStreamname);
        }
예제 #6
0
 bool IInternalConfigClientHost.IsExeConfig(string configPath)
 {
     return(StringUtil.EqualsIgnoreCase(configPath, ExeConfigPath));
 }
예제 #7
0
 // Return true if the config path is for a user.config file, false otherwise.
 private bool IsUserConfig(string configPath)
 {
     return(StringUtil.EqualsIgnoreCase(configPath, RoamingUserConfigPath) ||
            StringUtil.EqualsIgnoreCase(configPath, LocalUserConfigPath));
 }
 bool IInternalConfigClientHost.IsRoamingUserConfig(string configPath)
 {
     return(StringUtil.EqualsIgnoreCase(configPath, "MACHINE/EXE/ROAMING_USER"));
 }