C# Class ReSharper.Exceptional.Models.ArgumentNullExceptionDescription

Generates a description to use as the documentation of ArgumentNullException.
Datei anzeigen Open project: CSharpAnalyzers/ExceptionalReSharper Class Usage Examples

Public Methods

Method Description
ArgumentNullExceptionDescription ( IThrowStatement statement ) : System.Collections.Generic

Initializes a new instance of the ArgumentNullExceptionDescription class.

GetDescription ( ) : string

Generates a description based on the System.ArgumentNullException.

Private Methods

Method Description
CreateFrom ( ThrownExceptionModel exception ) : ArgumentNullExceptionDescription
ExtractArgumentValue ( ICSharpArgument argument ) : string

Extracts the argument value from literal or nameof expressions.

GetArgumentByName ( string paramName ) : ICSharpArgument

Gets an argument by parameter name.

GetArgumentText ( string paramName ) : string

Gets the argument text.

GetArguments ( ) : ICollection

Gets the arguments of the exception.

GetParameterName ( ICSharpArgument argument ) : string

Gets the name of the parameter of the given argument.

HasParamAndMessageArguments ( ) : bool

Determines whether has parameter and message arguments.

IsOfType ( string clrName ) : bool

Determines whether the exception is of type specified by the CLR name.

Method Details

ArgumentNullExceptionDescription() public method

Initializes a new instance of the ArgumentNullExceptionDescription class.
public ArgumentNullExceptionDescription ( IThrowStatement statement ) : System.Collections.Generic
statement IThrowStatement The thrown statement.
return System.Collections.Generic

GetDescription() public method

Generates a description based on the System.ArgumentNullException.
public GetDescription ( ) : string
return string