Add() публичный Метод

public Add ( string fileName ) : void
fileName string
Результат void
Пример #1
0
        private bool AddChangedFileTo(string fileName, ChangeInformation toAddTo)
        {
            bool wasAdded = false;

            lock (LockObject)
            {
                bool wasIgnored = TryIgnoreFileChange(fileName);
                if (!wasIgnored)
                {
                    toAddTo.Add(fileName);
                    if (SortDelegate != null)
                    {
                        toAddTo.Sort(SortDelegate);
                    }
                    wasAdded = true;
                }
                mLastModification = DateTime.Now;
            }
            return(wasAdded);
        }
Пример #2
0
 private void AddChangedFileTo(string fileName, ChangeInformation toAddTo)
 {
     lock (LockObject)
     {
         bool wasIgnored = TryIgnoreFileChange(fileName);
         if (!wasIgnored)
         {
             toAddTo.Add(fileName);
             if (SortDelegate != null)
             {
                 toAddTo.Sort(SortDelegate);
             }
         }
         mLastModification = DateTime.Now;
     }
 }