C# 클래스 Microsoft.Cci.ExpressionHelper

Class conraining helper routines for Expressions
파일 보기 프로젝트 열기: visualmutator/visualmutator

공개 메소드들

메소드 설명
IsFiniteNumeric ( ICompileTimeConstant constExpression ) : bool

Returns true if the given constant expression contains a finite numeric value. In other words, infinities and NaN are excluded.

IsIntegerInRangeOf ( ICompileTimeConstant constExpression, ITypeReference targetType ) : bool

Returns true if the constant is an integral value that falls in the range of the target type. The target type does have to be an integral type. If it is not, this method always returns false.

IsZeroIntPtr ( IExpression expression ) : bool

True if the given expression is a compile time constant with a value that is equal to IntPtr.Zero or UIntPtr.Zero.

비공개 메소드들

메소드 설명
IsIntegralMinusOne ( ICompileTimeConstant constExpression ) : bool
IsIntegralMinusOne ( IExpression expression ) : bool
IsIntegralNonzero ( ICompileTimeConstant constExpression ) : bool
IsIntegralNonzero ( IExpression expression ) : bool
IsIntegralOne ( ICompileTimeConstant constExpression ) : bool
IsIntegralOne ( IExpression expression ) : bool
IsIntegralZero ( ICompileTimeConstant constExpression ) : bool
IsIntegralZero ( IExpression expression ) : bool
IsNullLiteral ( IExpression expression ) : bool
IsNumericOne ( ICompileTimeConstant constExpression ) : bool
IsNumericZero ( ICompileTimeConstant constExpression ) : bool

메소드 상세

IsFiniteNumeric() 공개 정적인 메소드

Returns true if the given constant expression contains a finite numeric value. In other words, infinities and NaN are excluded.
public static IsFiniteNumeric ( ICompileTimeConstant constExpression ) : bool
constExpression ICompileTimeConstant
리턴 bool

IsIntegerInRangeOf() 공개 정적인 메소드

Returns true if the constant is an integral value that falls in the range of the target type. The target type does have to be an integral type. If it is not, this method always returns false.
public static IsIntegerInRangeOf ( ICompileTimeConstant constExpression, ITypeReference targetType ) : bool
constExpression ICompileTimeConstant
targetType ITypeReference
리턴 bool

IsZeroIntPtr() 공개 정적인 메소드

True if the given expression is a compile time constant with a value that is equal to IntPtr.Zero or UIntPtr.Zero.
public static IsZeroIntPtr ( IExpression expression ) : bool
expression IExpression
리턴 bool