Class CodeVariable
Variable declaration.
public sealed class CodeVariable : CodeTypedName, ITypedName, ILValue, ICodeElement
- Inheritance
-
CodeVariable
- Implements
- Inherited Members
- Extension Methods
Constructors
CodeVariable(CodeIdentifier, CodeTypeToken, bool)
public CodeVariable(CodeIdentifier name, CodeTypeToken type, bool rvalueTyped)
Parameters
name
CodeIdentifiertype
CodeTypeTokenrvalueTyped
bool
CodeVariable(CodeIdentifier, IType, bool)
public CodeVariable(CodeIdentifier name, IType type, bool rvalueTyped)
Parameters
name
CodeIdentifiertype
ITypervalueTyped
bool
Properties
RValueTyped
Indicates that variable type could be infered from assigned value.
This could be used to generate var
instead of specific type.
public bool RValueTyped { get; }