Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MyMethod(string filename, int size)
- {
- if (string.IsNullOrWhiteSpace(filenname))
- {
- throw new ArgumentNullException("filename is null");
- }
- if (size <= 0 || size < 1000)
- {
- throw new ArgumentException("Size is not valid");
- }
- // some other code
- }
Add Comment
Please, Sign In to add comment