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