Creating a .torrent file with BTSharp 2.0

This will create a .torrent file that describes myfile.mp3.

private string myContentProviderId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
stringfile = @"c:\myfile.mp3";
ShareInfo shareInfo = ShareInfo.Create(file, myContentProviderId);
shareInfo.Save(@"c:\myfile.torrent");