Check Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Utility to check Null/Empty and throw appropriate exceptions
public static class Check
type Check = class
Public Class Check
- Inheritance
-
Check
Methods
DirectoryExists(String) |
Checks if the DirectoryPath exists Throws DirectoryNotFoundException if the DirectoryPath does not exists |
Empty<T>(IEnumerable<T>, Boolean, String) | |
FileExists(String) |
Checks if the FilePath exists Throws FileNotFoundException if the filePath does not exists |
NotEmptyNotNull(String, String) |
Checks if the string argument passed in is NonEmpty and NotNull Throws NullReferenceException if the arugment is Null or Empty |
NotNull(Object, String) |
Checks if the argument passed in is NotNull Throws NullReferenceException if the arugment is Null |
Applies to
Azure SDK for .NET