Skip to main content

CSharpFactory.NumericLiteralExpression Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
NumericLiteralExpression(Decimal)
NumericLiteralExpression(Double)
NumericLiteralExpression(Int32)
NumericLiteralExpression(Int64)
NumericLiteralExpression(SByte)
NumericLiteralExpression(Single)
NumericLiteralExpression(UInt32)
NumericLiteralExpression(UInt64)

NumericLiteralExpression(Decimal)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(decimal value)

Parameters

value Decimal

Returns

LiteralExpressionSyntax

NumericLiteralExpression(Double)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(double value)

Parameters

value Double

Returns

LiteralExpressionSyntax

NumericLiteralExpression(Int32)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(int value)

Parameters

value Int32

Returns

LiteralExpressionSyntax

NumericLiteralExpression(Int64)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(long value)

Parameters

value Int64

Returns

LiteralExpressionSyntax

NumericLiteralExpression(SByte)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(sbyte value)

Parameters

value SByte

Returns

LiteralExpressionSyntax

NumericLiteralExpression(Single)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(float value)

Parameters

value Single

Returns

LiteralExpressionSyntax

NumericLiteralExpression(UInt32)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(uint value)

Parameters

value UInt32

Returns

LiteralExpressionSyntax

NumericLiteralExpression(UInt64)

public static Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax NumericLiteralExpression(ulong value)

Parameters

value UInt64

Returns

LiteralExpressionSyntax