Sdílet prostřednictvím


Check Class

Definition

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