SymbolExtensions.HasConstantValue Method
Containing Type: SymbolExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
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
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
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
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
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
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
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
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
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
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
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
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
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
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