C# 클래스 ReSharper.Exceptional.Models.ArgumentNullExceptionDescription

Generates a description to use as the documentation of ArgumentNullException.
파일 보기 프로젝트 열기: CSharpAnalyzers/ExceptionalReSharper 1 사용 예제들

공개 메소드들

메소드 설명
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