It’s a known best practice to validate all parameters of a function or a script. But how would you validate a file parameter for a new file?
You may know that it’s a best practice to validate arguments you pass to your function. For example, if you want to validate that your parameter named MyString is not null nor empty you can use the ValidateNotNullOrEmpty attribute. But there are other validations which must be done through casting1 or type accelerators. And fortunately, […]