Skip to main content

SymbolExtensions.HasConstantValue Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads​

MethodSummary
HasConstantValue(IFieldSymbol, Boolean)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Byte)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Char)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Decimal)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Double)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Int16)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Int32)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Int64)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, SByte)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, Single)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, String)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, UInt16)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, UInt32)Get a value indicating whether the field symbol has specified constant value.
HasConstantValue(IFieldSymbol, UInt64)Get a value indicating whether the field symbol has specified constant value.

HasConstantValue(IFieldSymbol, Boolean)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, bool value)

Parameters​

fieldSymbol   IFieldSymbol

value   Boolean

Returns​

Boolean

HasConstantValue(IFieldSymbol, Byte)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, byte value)

Parameters​

fieldSymbol   IFieldSymbol

value   Byte

Returns​

Boolean

HasConstantValue(IFieldSymbol, Char)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, char value)

Parameters​

fieldSymbol   IFieldSymbol

value   Char

Returns​

Boolean

HasConstantValue(IFieldSymbol, Decimal)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, decimal value)

Parameters​

fieldSymbol   IFieldSymbol

value   Decimal

Returns​

Boolean

HasConstantValue(IFieldSymbol, Double)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, double value)

Parameters​

fieldSymbol   IFieldSymbol

value   Double

Returns​

Boolean

HasConstantValue(IFieldSymbol, Int16)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, short value)

Parameters​

fieldSymbol   IFieldSymbol

value   Int16

Returns​

Boolean

HasConstantValue(IFieldSymbol, Int32)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, int value)

Parameters​

fieldSymbol   IFieldSymbol

value   Int32

Returns​

Boolean

HasConstantValue(IFieldSymbol, Int64)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, long value)

Parameters​

fieldSymbol   IFieldSymbol

value   Int64

Returns​

Boolean

HasConstantValue(IFieldSymbol, SByte)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, sbyte value)

Parameters​

fieldSymbol   IFieldSymbol

value   SByte

Returns​

Boolean

HasConstantValue(IFieldSymbol, Single)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, float value)

Parameters​

fieldSymbol   IFieldSymbol

value   Single

Returns​

Boolean

HasConstantValue(IFieldSymbol, String)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, string value)

Parameters​

fieldSymbol   IFieldSymbol

value   String

Returns​

Boolean

HasConstantValue(IFieldSymbol, UInt16)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, ushort value)

Parameters​

fieldSymbol   IFieldSymbol

value   UInt16

Returns​

Boolean

HasConstantValue(IFieldSymbol, UInt32)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, uint value)

Parameters​

fieldSymbol   IFieldSymbol

value   UInt32

Returns​

Boolean

HasConstantValue(IFieldSymbol, UInt64)​

Get a value indicating whether the field symbol has specified constant value.

public static bool HasConstantValue(this Microsoft.CodeAnalysis.IFieldSymbol fieldSymbol, ulong value)

Parameters​

fieldSymbol   IFieldSymbol

value   UInt64

Returns​

Boolean