K
Ken
I noticed and inconsistency in the FileSystemWatcher class. There is a
constructor that allows you to initialize the instance with the path to be
watched. It throws an exception if the path parameter is null, an empty
string, contains invalid path characters or the path can not be found. If
you instantiate with the default constructor and then set the Path via the
property, it will not throw an exception if you set it to null, e.g.
instance.Path = null;. The other three conditions are trapped in the
property Set.
Thank You
Ken
constructor that allows you to initialize the instance with the path to be
watched. It throws an exception if the path parameter is null, an empty
string, contains invalid path characters or the path can not be found. If
you instantiate with the default constructor and then set the Path via the
property, it will not throw an exception if you set it to null, e.g.
instance.Path = null;. The other three conditions are trapped in the
property Set.
Thank You
Ken