Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public void GenerateReport(int ReportId, [Optional] string saveToFolderPath)
  2.  
  3. // Use the C# syntax for this, rather than specifying the attribute explicitly
  4. public void GenerateReport(int ReportId, string saveToFolderPath = null)
  5. {
  6. saveToFolderPath == saveToFolderPath ?? Directory.GetCurrentDirectory();
  7. ...
  8. }
  9.  
  10. public void GenerateReport(int ReportId)
  11. {
  12. GenerateReport(ReportId, Environment.CurrentDirectory);
  13. }
  14. public void GenerateReport(int ReportId, string saveToFolderPath)
  15. {
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement