C# 클래스 NFluent.Extensions.ExtensionsCommonHelpers

Common helper methods for the NFluent extension methods.
파일 보기 프로젝트 열기: tpierrain/NFluent

공개 메소드들

메소드 설명
DoubleCurlyBraces ( this value ) : string

Doubles the curly braces in the string.

GetBaseType ( this type ) : Type

Gets the base type of the given type

Simplify port to .Net Core

ImplementsEquals ( this type ) : bool

Determines whether the specified type implements Equals.

IsNullable ( this type ) : bool

Determines whether the specified type is nullable.

IsNumerical ( Type type ) : bool

Checks if a type is numerical (i.e: int, double, short, uint...)

ToStringProperlyFormated ( this theObject ) : string

Returns a string that represents the current object. If the object is already a string, this method will surround it with brackets.

TypeToStringProperlyFormated ( this type, bool shortName = false ) : string

Returns a string with the type name, as seen in source code.

비공개 메소드들

메소드 설명
TruncateLongString ( string result ) : string

메소드 상세

DoubleCurlyBraces() 공개 정적인 메소드

Doubles the curly braces in the string.
public static DoubleCurlyBraces ( this value ) : string
value this String to correct.
리턴 string

GetBaseType() 공개 정적인 메소드

Gets the base type of the given type
Simplify port to .Net Core
public static GetBaseType ( this type ) : Type
type this Type
리턴 System.Type

ImplementsEquals() 공개 정적인 메소드

Determines whether the specified type implements Equals.
public static ImplementsEquals ( this type ) : bool
type this The type to be analyzed.
리턴 bool

IsNullable() 공개 정적인 메소드

Determines whether the specified type is nullable.
public static IsNullable ( this type ) : bool
type this /// The type to be evaluated. ///
리턴 bool

IsNumerical() 공개 정적인 메소드

Checks if a type is numerical (i.e: int, double, short, uint...)
public static IsNumerical ( Type type ) : bool
type System.Type
리턴 bool

ToStringProperlyFormated() 공개 정적인 메소드

Returns a string that represents the current object. If the object is already a string, this method will surround it with brackets.
public static ToStringProperlyFormated ( this theObject ) : string
theObject this The theObject.
리턴 string

TypeToStringProperlyFormated() 공개 정적인 메소드

Returns a string with the type name, as seen in source code.
public static TypeToStringProperlyFormated ( this type, bool shortName = false ) : string
type this /// The type to get the name of. ///
shortName bool /// If set to true return the name without namespaces. ///
리턴 string