Click or drag to resize

Literal Properties

The Literal type exposes the following members.

Properties
  NameDescription
Public property_AsString
This property is just to make debugging easier.
(Inherited from CodeObject.)
Public propertyAnnotations
Annotations (comments, attributes, directives, messages) associated with the current code object.
(Inherited from CodeObject.)
Public propertyColumnNumber
The column number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.)
Public propertyComment
The comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyDocComment
The documentation comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyEOLComment
The End-Of-Line comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyHasAnnotations
True if the code object has any annotations.
(Inherited from CodeObject.)
Public propertyHasAttributes
True if the code object has any attributes.
(Inherited from CodeObject.)
Public propertyHasComments
True if the code object has any comments of any kind.
(Inherited from CodeObject.)
Public propertyHasCompilerDirectives
True if the code object has any compiler directive annotations.
(Inherited from CodeObject.)
Public propertyHasDocComments
True if the code object has any documentation comments.
(Inherited from CodeObject.)
Public propertyHasEOLComments
True if the code object has any EOL comments.
(Inherited from CodeObject.)
Public propertyHasEOLOrPostAnnotations
True if the code object has any EOL or Postfix annotations.
(Inherited from CodeObject.)
Public propertyHasErrors
True if the code object has any error messages.
(Inherited from CodeObject.)
Public propertyHasFirstOnLineAnnotations
True if the code object has any annotations on separate lines.
(Inherited from CodeObject.)
Public propertyHasInfixComments
True if the code object has any Infix comments.
(Inherited from CodeObject.)
Public propertyHasMessages
True if the code object has any generated messages.
(Inherited from CodeObject.)
Public propertyHasNoIndentation
Determines if the code object has no indentation.
(Inherited from CodeObject.)
Public propertyHasNonEOLComments
True if the code object has any regular (non-doc) preceding (non-EOL, non-Infix, non-Postfix) comments.
(Inherited from CodeObject.)
Public propertyHasParens
True if the expression is surrounded by parens.
(Inherited from Expression.)
Public propertyHasParensDefault
True if the expression should have parens by default.
(Inherited from Expression.)
Public propertyHasPostAnnotations
True if the code object has any postfix annotations.
(Inherited from CodeObject.)
Public propertyHasTerminator
Determines if the code object has a terminator character.
(Inherited from CodeObject.)
Public propertyHiddenRef
Any hidden reference to another CodeObject.
(Inherited from CodeObject.)
Public propertyInfixComment
The infix comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyIsBool
True if the Literal is a bool.
Public propertyIsChar
True if the Literal is a char.
Public propertyIsConst
Always true for Literals.
(Overrides ExpressionIsConst.)
Public propertyIsDecimal
True if the Literal is a decimal.
Public propertyIsDelegateType
True if the expression evaluates to a delegate type.
(Inherited from Expression.)
Public propertyIsDouble
True if the Literal is a double.
Public propertyIsEndFirstOnLine
True if the closing paren or bracket is on a new line.
(Inherited from Expression.)
Public propertyIsFirstOnLine
Determines if the code object appears as the first item on a line.
(Inherited from CodeObject.)
Public propertyIsFirstOnLineDefault
True if the code object defaults to starting on a new line.
(Inherited from Expression.)
Public propertyIsFloat
True if the Literal is a float.
Public propertyIsGenerated
Determines if the code object is generated.
(Inherited from CodeObject.)
Public propertyIsGroupingSet
Determines if the 'grouping' (has parens or braces) status has been set.
(Inherited from CodeObject.)
Public propertyIsInt
True if the Literal is an int.
Public propertyIsInterpolatedString
True if the Literal is a valid interpolated string.
Public propertyIsLong
True if the Literal is a long.
Public propertyIsNewLinesSet
Determines if the newline count has been set on the code object.
(Inherited from CodeObject.)
Public propertyIsNull
True if the Literal is null.
Public propertyIsNumeric
True if the Literal is a numeric type.
Public propertyIsPossibleDelegateType
True if the expression evaluates to a delegate, unresolved, or dynamic type or a TypeParameterRef.
(Inherited from Expression.)
Public propertyIsRenderable
True if the CodeObject is renderable.
(Inherited from CodeObject.)
Public propertyIsSingleLine
Determines if the code object only requires a single line for display.
(Inherited from Expression.)
Public propertyIsSingleLineDefault
True if the code object only requires a single line for display by default.
(Inherited from CodeObject.)
Public propertyIsString
True if the Literal is a string.
Public propertyIsUInt
True if the Literal is a uint.
Public propertyIsULong
True if the Literal is a ulong.
Public propertyIsVerbatimString
True if the Literal is a verbatim string.
Public propertyLineNumber
The line number associated with the CodeObject (if any, 0 if none).
(Inherited from CodeObject.)
Public propertyNewLines
The number of newlines preceding the object (0 to N).
(Inherited from CodeObject.)
Public propertyParent
The parent CodeObject.
(Inherited from CodeObject.)
Public propertyPostfixComment
The postfix comment for the code object (if any).
(Inherited from CodeObject.)
Public propertyText
The text content of the Literal.
Public propertyValue
The object that the literal string represents (string, int, bool, etc). If the literal is an interpolated string, this will be a ChildListT.
Top
See Also