296 references to PrimitiveTypeCode
Microsoft.CodeAnalysis (265)
CodeGen\ILBuilderConversions.cs (113)
14public void EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode fromPredefTypeKind, Microsoft.Cci.PrimitiveTypeCode toPredefTypeKind, bool @checked) 20case Microsoft.Cci.PrimitiveTypeCode.Int8: 23case Microsoft.Cci.PrimitiveTypeCode.Int8: 34case Microsoft.Cci.PrimitiveTypeCode.UInt8: 37case Microsoft.Cci.PrimitiveTypeCode.UInt8: 48case Microsoft.Cci.PrimitiveTypeCode.Int16: 51case Microsoft.Cci.PrimitiveTypeCode.Int8: 52case Microsoft.Cci.PrimitiveTypeCode.UInt8: 53case Microsoft.Cci.PrimitiveTypeCode.Int16: 64case Microsoft.Cci.PrimitiveTypeCode.Char: 65case Microsoft.Cci.PrimitiveTypeCode.UInt16: 68case Microsoft.Cci.PrimitiveTypeCode.UInt8: 69case Microsoft.Cci.PrimitiveTypeCode.UInt16: 70case Microsoft.Cci.PrimitiveTypeCode.Char: 81case Microsoft.Cci.PrimitiveTypeCode.Int32: 84case Microsoft.Cci.PrimitiveTypeCode.Int8: 85case Microsoft.Cci.PrimitiveTypeCode.UInt8: 86case Microsoft.Cci.PrimitiveTypeCode.Int16: 87case Microsoft.Cci.PrimitiveTypeCode.UInt16: 88case Microsoft.Cci.PrimitiveTypeCode.Int32: 89case Microsoft.Cci.PrimitiveTypeCode.Char: 91case Microsoft.Cci.PrimitiveTypeCode.UInt32: 104case Microsoft.Cci.PrimitiveTypeCode.UInt32: 107case Microsoft.Cci.PrimitiveTypeCode.UInt8: 108case Microsoft.Cci.PrimitiveTypeCode.UInt16: 109case Microsoft.Cci.PrimitiveTypeCode.UInt32: 110case Microsoft.Cci.PrimitiveTypeCode.Char: 112case Microsoft.Cci.PrimitiveTypeCode.Int8: 113case Microsoft.Cci.PrimitiveTypeCode.Int16: 114case Microsoft.Cci.PrimitiveTypeCode.Int32: 127case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 130case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 131case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !@checked: 133case Microsoft.Cci.PrimitiveTypeCode.Int8: 134case Microsoft.Cci.PrimitiveTypeCode.Int16: 135case Microsoft.Cci.PrimitiveTypeCode.Int32: 138case Microsoft.Cci.PrimitiveTypeCode.UInt8: 139case Microsoft.Cci.PrimitiveTypeCode.UInt16: 140case Microsoft.Cci.PrimitiveTypeCode.Char: 145case Microsoft.Cci.PrimitiveTypeCode.UInt32: 152case Microsoft.Cci.PrimitiveTypeCode.Pointer: 153case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 166case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 169case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 170case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !@checked: 171case Microsoft.Cci.PrimitiveTypeCode.Pointer: 172case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 174case Microsoft.Cci.PrimitiveTypeCode.UInt8: 175case Microsoft.Cci.PrimitiveTypeCode.UInt16: 176case Microsoft.Cci.PrimitiveTypeCode.UInt32: 177case Microsoft.Cci.PrimitiveTypeCode.Char: 180case Microsoft.Cci.PrimitiveTypeCode.Int8: 181case Microsoft.Cci.PrimitiveTypeCode.Int16: 182case Microsoft.Cci.PrimitiveTypeCode.Int32: 197case Microsoft.Cci.PrimitiveTypeCode.Int64: 200case Microsoft.Cci.PrimitiveTypeCode.Int64: 202case Microsoft.Cci.PrimitiveTypeCode.Int8: 203case Microsoft.Cci.PrimitiveTypeCode.Int16: 204case Microsoft.Cci.PrimitiveTypeCode.Int32: 205case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 208case Microsoft.Cci.PrimitiveTypeCode.UInt8: 209case Microsoft.Cci.PrimitiveTypeCode.UInt16: 210case Microsoft.Cci.PrimitiveTypeCode.UInt32: 211case Microsoft.Cci.PrimitiveTypeCode.Char: 214case Microsoft.Cci.PrimitiveTypeCode.Pointer: 215case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 216case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 222case Microsoft.Cci.PrimitiveTypeCode.UInt64: 236case Microsoft.Cci.PrimitiveTypeCode.UInt64: 239case Microsoft.Cci.PrimitiveTypeCode.UInt64: 241case Microsoft.Cci.PrimitiveTypeCode.UInt8: 242case Microsoft.Cci.PrimitiveTypeCode.UInt16: 243case Microsoft.Cci.PrimitiveTypeCode.UInt32: 244case Microsoft.Cci.PrimitiveTypeCode.Pointer: 245case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 246case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 247case Microsoft.Cci.PrimitiveTypeCode.Char: 250case Microsoft.Cci.PrimitiveTypeCode.Int8: 251case Microsoft.Cci.PrimitiveTypeCode.Int16: 252case Microsoft.Cci.PrimitiveTypeCode.Int32: 253case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 259case Microsoft.Cci.PrimitiveTypeCode.Int64: 273case Microsoft.Cci.PrimitiveTypeCode.Float32: 276case Microsoft.Cci.PrimitiveTypeCode.UInt32: 277case Microsoft.Cci.PrimitiveTypeCode.UInt64: 278case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 285case Microsoft.Cci.PrimitiveTypeCode.Float64: 288case Microsoft.Cci.PrimitiveTypeCode.UInt32: 289case Microsoft.Cci.PrimitiveTypeCode.UInt64: 290case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 297case Microsoft.Cci.PrimitiveTypeCode.Pointer: 298case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 303case Microsoft.Cci.PrimitiveTypeCode.UInt8: 304case Microsoft.Cci.PrimitiveTypeCode.UInt16: 305case Microsoft.Cci.PrimitiveTypeCode.UInt32: 308case Microsoft.Cci.PrimitiveTypeCode.UInt64: 311case Microsoft.Cci.PrimitiveTypeCode.Int8: 312case Microsoft.Cci.PrimitiveTypeCode.Int16: 313case Microsoft.Cci.PrimitiveTypeCode.Int32: 314case Microsoft.Cci.PrimitiveTypeCode.Int64: 317case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 320case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 330case Microsoft.Cci.PrimitiveTypeCode.UInt8: 331case Microsoft.Cci.PrimitiveTypeCode.UInt16: 332case Microsoft.Cci.PrimitiveTypeCode.UInt32: 333case Microsoft.Cci.PrimitiveTypeCode.UInt64: 334case Microsoft.Cci.PrimitiveTypeCode.Int64: 337case Microsoft.Cci.PrimitiveTypeCode.Int8: 338case Microsoft.Cci.PrimitiveTypeCode.Int16: 339case Microsoft.Cci.PrimitiveTypeCode.Int32: 344case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 345case Microsoft.Cci.PrimitiveTypeCode.UIntPtr:
CodeGen\ILBuilderEmit.cs (2)
264Cci.PrimitiveTypeCode keyTypeCode) 267Debug.Assert(keyTypeCode != Cci.PrimitiveTypeCode.String);
CodeGen\PrivateImplementationDetails.cs (12)
196Cci.PrimitiveTypeCode typeCode = arrayType.GetElementType(emitContext).TypeCode; 198Cci.PrimitiveTypeCode.Int16 or Cci.PrimitiveTypeCode.UInt16 or Cci.PrimitiveTypeCode.Char or 199Cci.PrimitiveTypeCode.Int32 or Cci.PrimitiveTypeCode.UInt32 or Cci.PrimitiveTypeCode.Float32 or 200Cci.PrimitiveTypeCode.Int64 or Cci.PrimitiveTypeCode.UInt64 or Cci.PrimitiveTypeCode.Float64); 218Cci.PrimitiveTypeCode typeCode = arrayType.GetElementType(emitContext).TypeCode; 219Debug.Assert(typeCode is not Cci.PrimitiveTypeCode.Reference);
CodeGen\SwitchIntegralJumpTableEmitter.cs (3)
30private readonly Cci.PrimitiveTypeCode _keyTypeCode; 53Cci.PrimitiveTypeCode keyTypeCode, 532_builder.EmitNumericConversion(_keyTypeCode, Microsoft.Cci.PrimitiveTypeCode.UInt32, false);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
153keyTypeCode: Cci.PrimitiveTypeCode.UInt32,
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
43public Cci.PrimitiveTypeCode TypeCode => OldDefinition.TypeCode;
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
71public Cci.PrimitiveTypeCode TypeCode => OldDefinition.TypeCode;
Emit\ErrorType.cs (2)
89Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 93return Cci.PrimitiveTypeCode.NotPrimitive;
Emit\NoPia\CommonEmbeddedType.cs (2)
584Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 588return Cci.PrimitiveTypeCode.NotPrimitive;
Emit\NoPia\CommonEmbeddedTypeParameter.cs (2)
145Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 149return Cci.PrimitiveTypeCode.NotPrimitive;
MetadataReader\MetadataDecoder.cs (2)
2336(GetPrimitiveTypeCode(signature2[0].Type) != Cci.PrimitiveTypeCode.Void)) 2378if (GetPrimitiveTypeCode(methodParams[0].Type) != Cci.PrimitiveTypeCode.Void)
MetadataReader\SymbolFactory.cs (1)
48internal abstract Cci.PrimitiveTypeCode GetPrimitiveTypeCode(ModuleSymbol moduleSymbol, TypeSymbol type);
MetadataReader\TypeNameDecoder.cs (1)
100protected Microsoft.Cci.PrimitiveTypeCode GetPrimitiveTypeCode(TypeSymbol type)
PEWriter\InheritedTypeParameter.cs (2)
239public PrimitiveTypeCode TypeCode 241get { return PrimitiveTypeCode.NotPrimitive; }
PEWriter\MetadataWriter.cs (37)
3834var primitiveType = typeReference.TypeCode; 3837case PrimitiveTypeCode.Pointer: 3838case PrimitiveTypeCode.FunctionPointer: 3839case PrimitiveTypeCode.NotPrimitive: 3933private static void SerializePrimitiveType(SignatureTypeEncoder encoder, PrimitiveTypeCode primitiveType) 3937case PrimitiveTypeCode.Boolean: 3941case PrimitiveTypeCode.UInt8: 3945case PrimitiveTypeCode.Int8: 3949case PrimitiveTypeCode.Char: 3953case PrimitiveTypeCode.Int16: 3957case PrimitiveTypeCode.UInt16: 3961case PrimitiveTypeCode.Int32: 3965case PrimitiveTypeCode.UInt32: 3969case PrimitiveTypeCode.Int64: 3973case PrimitiveTypeCode.UInt64: 3977case PrimitiveTypeCode.Float32: 3981case PrimitiveTypeCode.Float64: 3985case PrimitiveTypeCode.IntPtr: 3989case PrimitiveTypeCode.UIntPtr: 3993case PrimitiveTypeCode.String: 3997case PrimitiveTypeCode.Void: 4038var primitiveType = typeReference.TypeCode; 4039if (primitiveType != PrimitiveTypeCode.NotPrimitive) 4054private static void SerializePrimitiveType(CustomAttributeElementTypeEncoder encoder, PrimitiveTypeCode primitiveType) 4058case PrimitiveTypeCode.Boolean: 4062case PrimitiveTypeCode.UInt8: 4066case PrimitiveTypeCode.Int8: 4070case PrimitiveTypeCode.Char: 4074case PrimitiveTypeCode.Int16: 4078case PrimitiveTypeCode.UInt16: 4082case PrimitiveTypeCode.Int32: 4086case PrimitiveTypeCode.UInt32: 4090case PrimitiveTypeCode.Int64: 4094case PrimitiveTypeCode.UInt64: 4098case PrimitiveTypeCode.Float32: 4102case PrimitiveTypeCode.Float64: 4106case PrimitiveTypeCode.String:
PEWriter\MetadataWriter.PortablePdb.cs (2)
181var typeCode = type.TypeCode; 200else if (typeCode == PrimitiveTypeCode.String)
PEWriter\ModifiedTypeReference.cs (2)
60PrimitiveTypeCode ITypeReference.TypeCode 62get { return PrimitiveTypeCode.NotPrimitive; }
PEWriter\ReferenceIndexerBase.cs (2)
200if (!this.typeReferenceNeedsToken && namespaceTypeReference.TypeCode != PrimitiveTypeCode.NotPrimitive) 437(typeReference.TypeCode == PrimitiveTypeCode.NotPrimitive && typeReference.AsNamespaceTypeReference != null))
PEWriter\RootModuleType.cs (1)
236PrimitiveTypeCode ITypeReference.TypeCode
PEWriter\Types.cs (1)
629PrimitiveTypeCode TypeCode { get; }
PrimitiveTypeCodeExtensions.cs (37)
11public static bool Is64BitIntegral(this Cci.PrimitiveTypeCode kind) 15case Cci.PrimitiveTypeCode.Int64: 16case Cci.PrimitiveTypeCode.UInt64: 23public static bool IsSigned(this Cci.PrimitiveTypeCode kind) 27case Cci.PrimitiveTypeCode.Int8: 28case Cci.PrimitiveTypeCode.Int16: 29case Cci.PrimitiveTypeCode.Int32: 30case Cci.PrimitiveTypeCode.Int64: 31case Cci.PrimitiveTypeCode.IntPtr: 32case Cci.PrimitiveTypeCode.Float32: 33case Cci.PrimitiveTypeCode.Float64: 40public static bool IsUnsigned(this Cci.PrimitiveTypeCode kind) 44case Cci.PrimitiveTypeCode.UInt8: 45case Cci.PrimitiveTypeCode.UInt16: 46case Cci.PrimitiveTypeCode.UInt32: 47case Cci.PrimitiveTypeCode.UInt64: 48case Cci.PrimitiveTypeCode.UIntPtr: 49case Cci.PrimitiveTypeCode.Char: 50case Cci.PrimitiveTypeCode.Pointer: 51case Cci.PrimitiveTypeCode.FunctionPointer: 58public static bool IsFloatingPoint(this Cci.PrimitiveTypeCode kind) 62case Cci.PrimitiveTypeCode.Float32: 63case Cci.PrimitiveTypeCode.Float64: 70public static ConstantValueTypeDiscriminator GetConstantValueTypeDiscriminator(this Cci.PrimitiveTypeCode type) 74case Cci.PrimitiveTypeCode.Int8: return ConstantValueTypeDiscriminator.SByte; 75case Cci.PrimitiveTypeCode.UInt8: return ConstantValueTypeDiscriminator.Byte; 76case Cci.PrimitiveTypeCode.Int16: return ConstantValueTypeDiscriminator.Int16; 77case Cci.PrimitiveTypeCode.UInt16: return ConstantValueTypeDiscriminator.UInt16; 78case Cci.PrimitiveTypeCode.Int32: return ConstantValueTypeDiscriminator.Int32; 79case Cci.PrimitiveTypeCode.UInt32: return ConstantValueTypeDiscriminator.UInt32; 80case Cci.PrimitiveTypeCode.Int64: return ConstantValueTypeDiscriminator.Int64; 81case Cci.PrimitiveTypeCode.UInt64: return ConstantValueTypeDiscriminator.UInt64; 82case Cci.PrimitiveTypeCode.Char: return ConstantValueTypeDiscriminator.Char; 83case Cci.PrimitiveTypeCode.Boolean: return ConstantValueTypeDiscriminator.Boolean; 84case Cci.PrimitiveTypeCode.Float32: return ConstantValueTypeDiscriminator.Single; 85case Cci.PrimitiveTypeCode.Float64: return ConstantValueTypeDiscriminator.Double; 86case Cci.PrimitiveTypeCode.String: return ConstantValueTypeDiscriminator.String;
SpecialTypes.cs (38)
82private static readonly Microsoft.Cci.PrimitiveTypeCode[] s_typeIdToTypeCodeMap; 99s_typeIdToTypeCodeMap = new Microsoft.Cci.PrimitiveTypeCode[(int)SpecialType.Count + 1]; 103s_typeIdToTypeCodeMap[i] = Microsoft.Cci.PrimitiveTypeCode.NotPrimitive; 106s_typeIdToTypeCodeMap[(int)SpecialType.System_Boolean] = Microsoft.Cci.PrimitiveTypeCode.Boolean; 107s_typeIdToTypeCodeMap[(int)SpecialType.System_Char] = Microsoft.Cci.PrimitiveTypeCode.Char; 108s_typeIdToTypeCodeMap[(int)SpecialType.System_Void] = Microsoft.Cci.PrimitiveTypeCode.Void; 109s_typeIdToTypeCodeMap[(int)SpecialType.System_String] = Microsoft.Cci.PrimitiveTypeCode.String; 110s_typeIdToTypeCodeMap[(int)SpecialType.System_Int64] = Microsoft.Cci.PrimitiveTypeCode.Int64; 111s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.PrimitiveTypeCode.Int32; 112s_typeIdToTypeCodeMap[(int)SpecialType.System_Int16] = Microsoft.Cci.PrimitiveTypeCode.Int16; 113s_typeIdToTypeCodeMap[(int)SpecialType.System_SByte] = Microsoft.Cci.PrimitiveTypeCode.Int8; 114s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt64] = Microsoft.Cci.PrimitiveTypeCode.UInt64; 115s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt32] = Microsoft.Cci.PrimitiveTypeCode.UInt32; 116s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt16] = Microsoft.Cci.PrimitiveTypeCode.UInt16; 117s_typeIdToTypeCodeMap[(int)SpecialType.System_Byte] = Microsoft.Cci.PrimitiveTypeCode.UInt8; 118s_typeIdToTypeCodeMap[(int)SpecialType.System_Single] = Microsoft.Cci.PrimitiveTypeCode.Float32; 119s_typeIdToTypeCodeMap[(int)SpecialType.System_Double] = Microsoft.Cci.PrimitiveTypeCode.Float64; 120s_typeIdToTypeCodeMap[(int)SpecialType.System_IntPtr] = Microsoft.Cci.PrimitiveTypeCode.IntPtr; 121s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr; 123s_typeCodeToTypeIdMap = new SpecialType[(int)Microsoft.Cci.PrimitiveTypeCode.Invalid + 1]; 130s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Boolean] = SpecialType.System_Boolean; 131s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Char] = SpecialType.System_Char; 132s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Void] = SpecialType.System_Void; 133s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.String] = SpecialType.System_String; 134s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int64] = SpecialType.System_Int64; 135s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int32] = SpecialType.System_Int32; 136s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int16] = SpecialType.System_Int16; 137s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int8] = SpecialType.System_SByte; 138s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt64] = SpecialType.System_UInt64; 139s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt32] = SpecialType.System_UInt32; 140s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt16] = SpecialType.System_UInt16; 141s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt8] = SpecialType.System_Byte; 142s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Float32] = SpecialType.System_Single; 143s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Float64] = SpecialType.System_Double; 144s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.IntPtr] = SpecialType.System_IntPtr; 145s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.System_UIntPtr; 168public static SpecialType GetTypeFromMetadataName(Microsoft.Cci.PrimitiveTypeCode typeCode) 173public static Microsoft.Cci.PrimitiveTypeCode GetTypeCode(SpecialType typeId)
Microsoft.CodeAnalysis.VisualBasic (31)
CodeGen\EmitConversion.vb (31)
18Case PrimitiveTypeCode.Boolean, 19PrimitiveTypeCode.Float32, 20PrimitiveTypeCode.Float64, 21PrimitiveTypeCode.Int16, 22PrimitiveTypeCode.Int32, 23PrimitiveTypeCode.Int64, 24PrimitiveTypeCode.Int8, 25PrimitiveTypeCode.UInt16, 26PrimitiveTypeCode.UInt32, 27PrimitiveTypeCode.UInt64, 28PrimitiveTypeCode.UInt8 40Case PrimitiveTypeCode.Int8, 41PrimitiveTypeCode.UInt8, 42PrimitiveTypeCode.Int16, 43PrimitiveTypeCode.UInt16, 44PrimitiveTypeCode.Int32, 45PrimitiveTypeCode.UInt32, 46PrimitiveTypeCode.Int64, 47PrimitiveTypeCode.UInt64 59Debug.Assert((IsSimpleType(underlyingFrom) AndAlso IsSimpleType(underlyingTo)) OrElse (underlyingFrom = PrimitiveTypeCode.Char AndAlso underlyingTo = PrimitiveTypeCode.Int32)) 70underlyingFrom <> PrimitiveTypeCode.Float32 AndAlso 71underlyingFrom <> PrimitiveTypeCode.Float64 Then 76If underlyingTo = PrimitiveTypeCode.Boolean Then 93If underlyingFrom = PrimitiveTypeCode.Boolean Then 99If underlyingTo <> PrimitiveTypeCode.Int32 Then 102_builder.EmitNumericConversion(PrimitiveTypeCode.Int32, underlyingTo, checked:=False) 110If underlyingFrom = PrimitiveTypeCode.Float32 AndAlso IsIntegral(underlyingTo) Then 145Debug.Assert(IsIntegral(typeFrom) OrElse typeFrom.IsFloatingPoint() OrElse typeFrom = PrimitiveTypeCode.Char) 171(underlyingFrom = PrimitiveTypeCode.Char AndAlso underlyingTo = PrimitiveTypeCode.Int32) Then ' Allow AscW optimization.