This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClass | |
{ | |
private void Test(string param) | |
{ | |
if (string.IsNullOrWhiteSpace(param)) | |
throw new ArgumentNullException("Null Ex"); | |
else if (param.Length > 1) | |
throw new ArgumentException("Arg Excp"); | |
else if (param.Length > 5) | |
throw new OverflowException(); |