C# Класс ReSharper.Exceptional.Models.ArgumentNullExceptionDescription

Generates a description to use as the documentation of ArgumentNullException.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ArgumentNullExceptionDescription ( IThrowStatement statement ) : System.Collections.Generic

Initializes a new instance of the ArgumentNullExceptionDescription class.

GetDescription ( ) : string

Generates a description based on the System.ArgumentNullException.

Приватные методы

Метод Описание
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.

Описание методов

ArgumentNullExceptionDescription() публичный Метод

Initializes a new instance of the ArgumentNullExceptionDescription class.
public ArgumentNullExceptionDescription ( IThrowStatement statement ) : System.Collections.Generic
statement IThrowStatement The thrown statement.
Результат System.Collections.Generic

GetDescription() публичный Метод

Generates a description based on the System.ArgumentNullException.
public GetDescription ( ) : string
Результат string