GetWatchPathsData() private static method

Converts the paths list into a byte array containing the amount of paths in the paths as a first int, and the unicode-converted list of paths after it.
private static GetWatchPathsData ( IEnumerable paths ) : byte[]
paths IEnumerable List of paths to convert.
return byte[]
 /// <summary>
 /// Clears the list of paths to watch.
 /// </summary>
 /// <exception cref="InvalidOperationException">Client is not connected to the driver.</exception>
 public void ClearWatchPaths()
 {
     this.ExecuteCommand(new DriverCommand(DriverCommandType.SetWatchPaths, LazyCopyDriverClient.GetWatchPathsData(null)));
 }
 /// <summary>
 /// Sets the list of paths the driver should watch.
 /// </summary>
 /// <param name="paths">List of paths to watch and their report rates. Should be in DOS name format, for example: <c>\Device\HarddiskVolume1\Folder\</c></param>
 /// <exception cref="InvalidOperationException">Client is not connected to the driver.</exception>
 public void SetWatchPaths(string[] paths)
 {
     byte[] data = LazyCopyDriverClient.GetWatchPathsData(paths);
     this.ExecuteCommand(new DriverCommand(DriverCommandType.SetWatchPaths, data));
 }