2 overrides of ValueAsObject
Microsoft.CodeAnalysis.VisualBasic (2)
Preprocessor\CConst.vb (2)
201Public Overrides ReadOnly Property ValueAsObject As Object 235Public Overrides ReadOnly Property ValueAsObject As Object
19 references to ValueAsObject
Microsoft.CodeAnalysis.VisualBasic (19)
Preprocessor\ExpressionEvaluator.vb (16)
544Dim value As Object = op.ValueAsObject 616Return CConst.Create(CBool(value.ValueAsObject)) 625If value.ValueAsObject Is Nothing Then 689Return CConst.CreateChecked(System.Convert.ChangeType(value.ValueAsObject, toSpecialType.ToRuntimeType(), CultureInfo.InvariantCulture)) 747If value.ValueAsObject Is Nothing Then 788If value.ValueAsObject Is Nothing Then 825If value.ValueAsObject Is Nothing Then 944Return val.SpecialType = SpecialType.System_Object AndAlso val.ValueAsObject Is Nothing 1279Dim LeftValue As Double = CDbl(left.ValueAsObject) 1280Dim RightValue As Double = CDbl(right.ValueAsObject) 1408Dim LeftValue As Decimal = CDec(left.ValueAsObject) 1409Dim RightValue As Decimal = CDec(right.ValueAsObject) 1494Dim LeftSpelling = If(CStr(left.ValueAsObject), "") 1495Dim RightSpelling = If(CStr(right.ValueAsObject), "") 1541Dim LeftValue As Boolean = CBool(left.ValueAsObject) 1542Dim RightValue As Boolean = CBool(right.ValueAsObject)
Preprocessor\TypeHelpers.vb (3)
26Return CType(v.ValueAsObject, Long) 30Return AscW(CChar(v.ValueAsObject)) 34Return CDate(v.ValueAsObject).ToBinary