CmisSync.Lib.Events.FSEvent.ToString C# (CSharp) Метод

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

Returns a System.String that represents the current CmisSync.Lib.Events.FSEvent.
public ToString ( ) : string
Результат string
        public override string ToString() {
            return string.Format("FSEvent with type \"{0}\" on path \"{1}\" and the name \"{2}\"", this.Type, this.LocalPath, this.Name);
        }
    }

Usage Example

Пример #1
0
 public void FSEventTest() {
     ISyncEvent e = new FSEvent(WatcherChangeTypes.Created, "test");
     Assert.AreEqual("FSEvent with type \"Created\" on path \"test\"",e.ToString());
 }