Dev2.Exceptions.ThrowArgumentNullExceptionIfObjectIsNull C# (CSharp) Method

ThrowArgumentNullExceptionIfObjectIsNull() public static method

public static ThrowArgumentNullExceptionIfObjectIsNull ( string objectName, object objectValue ) : void
objectName string
objectValue object
return void
        public static void ThrowArgumentNullExceptionIfObjectIsNull(string objectName, object objectValue)
        {
            if (objectValue == null)
            {
                throw new ArgumentNullException(objectName, FrameworkResources.Exception_ArgumentCannotBeNull);
            }
        }