Пример #1
0
 public void copyTo(_FileInfo fi)
 {
     fi.Name     = string.Copy(this.Name);
     fi.FilePath = string.Copy(this.FilePath);
     fi.FileSize = string.Copy(this.FileSize);
     fi.Type     = string.Copy(this.Type);
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }
            _FileInfo fi = obj as _FileInfo;

            if ((System.Object)fi == null)
            {
                return(false);
            }
            if (Name != fi.Name)
            {
                return(false);
            }
            if (FilePath != fi.FilePath)
            {
                return(false);
            }
            if (FileSize != fi.FileSize)
            {
                return(false);
            }
            if (Type != fi.Type)
            {
                return(false);
            }
            return(true);
        }