Share via


EdmFloatingConstant Class

Definition

Represents an EDM floating point constant.

public class EdmFloatingConstant : Microsoft.OData.Edm.Vocabularies.EdmValue, Microsoft.OData.Edm.Vocabularies.IEdmFloatingConstantExpression
type EdmFloatingConstant = class
    inherit EdmValue
    interface IEdmFloatingConstantExpression
    interface IEdmExpression
    interface IEdmElement
    interface IEdmFloatingValue
    interface IEdmPrimitiveValue
    interface IEdmValue
Public Class EdmFloatingConstant
Inherits EdmValue
Implements IEdmFloatingConstantExpression
Inheritance
EdmFloatingConstant
Implements

Constructors

EdmFloatingConstant(Double)

Initializes a new instance of the EdmFloatingConstant class.

EdmFloatingConstant(IEdmPrimitiveTypeReference, Double)

Initializes a new instance of the EdmFloatingConstant class.

Properties

ExpressionKind

Gets the kind of this expression.

Type

Gets the type of this value.

(Inherited from EdmValue)
Value

Gets the definition of this value.

ValueKind

Gets the kind of this value.

Explicit Interface Implementations

IEdmDelayedValue.Value (Inherited from EdmValue)

Extension Methods

IsSerializedAsElement(IEdmValue, IEdmModel)

Gets an annotation indicating if the value should be serialized as an element.

SetIsSerializedAsElement(IEdmValue, IEdmModel, Boolean)

Sets an annotation indicating if the value should be serialized as an element.

Location(IEdmElement)

Gets the location of this element.

TryCast(IEdmExpression, IEdmTypeReference, IEdmType, Boolean, IEnumerable<EdmError>)

Determines if the type of an expression is compatible with the provided type

TryCast(IEdmExpression, IEdmTypeReference, IEnumerable<EdmError>)

Determines if the type of an expression is compatible with the provided type

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to