100 references to VariantType
Microsoft.VisualBasic (1)
Microsoft.VisualBasic.cs (1)
73
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.VisualBasic.
VariantType
))]
Microsoft.VisualBasic.Core (99)
Microsoft\VisualBasic\CompilerServices\StructUtils.vb (3)
32
Dim vt As
VariantType
38
If vt <>
VariantType
.UserDefinedType OrElse typ.IsPrimitive Then
51
If VarTypeFromComType(FieldType) =
VariantType
.UserDefinedType Then
Microsoft\VisualBasic\CompilerServices\VB6BinaryFile.vb (7)
140
Value = ByteType.FromObject(InputNum(
VariantType
.Byte))
144
Value = ShortType.FromObject(InputNum(
VariantType
.Short))
148
Value = IntegerType.FromObject(InputNum(
VariantType
.Integer))
152
Value = LongType.FromObject(InputNum(
VariantType
.Long))
156
Value = SingleType.FromObject(InputNum(
VariantType
.Single))
160
Value = DoubleType.FromObject(InputNum(
VariantType
.Double))
164
Value = DecimalType.FromObject(InputNum(
VariantType
.Decimal))
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
710
Protected Overridable Function InputNum(ByVal vt As
VariantType
) As Object
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (8)
144
obj = ParseInputField(sField,
VariantType
.Empty)
154
Value = ByteType.FromObject(InputNum(
VariantType
.Byte))
158
Value = ShortType.FromObject(InputNum(
VariantType
.Short))
162
Value = IntegerType.FromObject(InputNum(
VariantType
.Integer))
166
Value = LongType.FromObject(InputNum(
VariantType
.Long))
180
Value = SingleType.FromObject(InputNum(
VariantType
.Single), GetInvariantCultureInfo().NumberFormat)
184
Value = DoubleType.FromObject(InputNum(
VariantType
.Double), GetInvariantCultureInfo().NumberFormat)
188
Value = DecimalType.FromObject(InputNum(
VariantType
.Decimal), GetInvariantCultureInfo().NumberFormat)
Microsoft\VisualBasic\Constants.vb (32)
90
Public Const vbEmpty As
VariantType
=
VariantType
.Empty
91
Public Const vbNull As
VariantType
=
VariantType
.Null
92
Public Const vbInteger As
VariantType
=
VariantType
.Integer
93
Public Const vbLong As
VariantType
=
VariantType
.Long
94
Public Const vbSingle As
VariantType
=
VariantType
.Single
95
Public Const vbDouble As
VariantType
=
VariantType
.Double
96
Public Const vbCurrency As
VariantType
=
VariantType
.Currency
97
Public Const vbDate As
VariantType
=
VariantType
.Date
98
Public Const vbString As
VariantType
=
VariantType
.String
99
Public Const vbObject As
VariantType
=
VariantType
.Object
100
Public Const vbBoolean As
VariantType
=
VariantType
.Boolean
101
Public Const vbVariant As
VariantType
=
VariantType
.Variant
102
Public Const vbDecimal As
VariantType
=
VariantType
.Decimal
103
Public Const vbByte As
VariantType
=
VariantType
.Byte
104
Public Const vbUserDefinedType As
VariantType
=
VariantType
.UserDefinedType
105
Public Const vbArray As
VariantType
=
VariantType
.Array
Microsoft\VisualBasic\Conversion.vb (18)
934
Friend Function ParseInputField(ByVal Value As Object, ByVal vtInput As
VariantType
) As Object
1064
Case
VariantType
.Short
1066
Case
VariantType
.Integer
1068
Case
VariantType
.Single
1070
Case
VariantType
.Double
1072
Case
VariantType
.Decimal,
VariantType
.Currency
1074
Case
VariantType
.Date
1076
Case
VariantType
.String
1078
Case
VariantType
.Object
1080
Case
VariantType
.Error
1082
Case
VariantType
.Boolean
1084
Case
VariantType
.Variant
1086
Case
VariantType
.DataObject
1088
Case
VariantType
.Decimal
1090
Case
VariantType
.Byte
1092
Case
VariantType
.Char
1094
Case
VariantType
.Long
Microsoft\VisualBasic\Information.vb (30)
250
Public Function VarType(ByVal VarName As Object) As
VariantType
252
Return
VariantType
.Object
258
Friend Function VarTypeFromComType(ByVal typ As System.Type) As
VariantType
260
Return
VariantType
.Object
267
Return CType(
VariantType
.Array Or
VariantType
.Object,
VariantType
)
270
Dim result As
VariantType
= VarTypeFromComType(typ)
271
If (result And
VariantType
.Array) <> 0 Then
273
Return CType(
VariantType
.Array Or
VariantType
.Object,
VariantType
)
275
Return CType(result Or
VariantType
.Array,
VariantType
)
282
Return
VariantType
.Empty
288
Return
VariantType
.String
290
Return
VariantType
.Integer
292
Return
VariantType
.Short
294
Return
VariantType
.Long
296
Return
VariantType
.Single
298
Return
VariantType
.Double
300
Return
VariantType
.Date
302
Return
VariantType
.Boolean
304
Return
VariantType
.Decimal
306
Return
VariantType
.Byte
308
Return
VariantType
.Char
310
Return
VariantType
.Null
317
Return
VariantType
.Error
319
Return
VariantType
.UserDefinedType
321
Return
VariantType
.Object