sitecore Required Object


Example

This checks to see if the given object is null, and then throws RequiredObjectIsNullException if it is.

Assert.Required(parameter, "parameter is required.");