173 references to GetTypeCode
mscorlib (19)
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
150switch (Type.GetTypeCode(valueType))
system\collections\generic\equalitycomparer.cs (2)
62TypeCode underlyingTypeCode = Type.GetTypeCode(Enum.GetUnderlyingType(t)); 407if (Type.GetTypeCode(Enum.GetUnderlyingType(typeof(T))) != TypeCode.Int32) {
system\diagnostics\eventing\StubEnvironment.cs (1)
208public static TypeCode GetTypeCode(this Type type) { return Type.GetTypeCode(type); }
system\reflection\emit\customattributebuilder.cs (10)
79switch (Type.GetTypeCode(Enum.GetUnderlyingType(t))) 157TypeCode paramTC = Type.GetTypeCode(paramTypes[i]); 158if (paramTC != Type.GetTypeCode(constructorArgs[i].GetType())) 221Type.GetTypeCode(propertyValues[i].GetType()) != Type.GetTypeCode(propType)) 273Type.GetTypeCode(fieldValues[i].GetType()) != Type.GetTypeCode(fldType)) 293switch (Type.GetTypeCode(type)) 389switch (Type.GetTypeCode(Enum.GetUnderlyingType(type))) 455switch (Type.GetTypeCode(type))
system\rttype.cs (1)
3631typeCode = Type.GetTypeCode(Enum.GetUnderlyingType(this));
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (1)
200switch (System.Type.GetTypeCode(ReturnType))
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
57code = ToPrimitiveTypeEnum(Type.GetTypeCode(type));
system\stubhelpers.cs (1)
1031switch (Type.GetTypeCode(elementType))
system\type.cs (1)
248return Type.GetTypeCode(UnderlyingSystemType);
PresentationFramework (7)
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (1)
30TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
45TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\CornerRadiusConverter.cs (1)
47TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\FigureLengthConverter.cs (1)
58TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\GridLengthConverter.cs (1)
61TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\LengthConverter.cs (1)
54TypeCode tc = Type.GetTypeCode(sourceType);
src\Framework\System\Windows\ThicknessConverter.cs (1)
47TypeCode tc = Type.GetTypeCode(sourceType);
System.AddIn.Contract (7)
System\Addin\Contract\RemoteArgument.cs (7)
85typeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 89typeCode = Type.GetTypeCode(value.GetType()); 134TypeCode arrayTypeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType()); 694if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 702this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType()); 716if (Type.GetTypeCode(array.GetType().GetElementType()) == TypeCode.Object) 724this.intrinsicTypeCode = Type.GetTypeCode(array.GetType().GetElementType());
System.Core (22)
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
48switch (Type.GetTypeCode(type)) {
Microsoft\Scripting\Ast\TypeUtils.cs (10)
61switch (Type.GetTypeCode(type)) { 84switch (Type.GetTypeCode(type)) { 103switch (Type.GetTypeCode(type)) { 121switch (Type.GetTypeCode(type)) { 134switch (Type.GetTypeCode(type)) { 363switch (Type.GetTypeCode(type)) { 488TypeCode tcSource = Type.GetTypeCode(source); 489TypeCode tcDest = Type.GetTypeCode(destination); 637switch (Type.GetTypeCode(type)) { 651switch (Type.GetTypeCode(type)) {
Microsoft\Scripting\Compiler\ILGen.cs (6)
170switch (Type.GetTypeCode(type)) { 218switch (Type.GetTypeCode(type)) { 456switch (Type.GetTypeCode(type)) { 544switch (Type.GetTypeCode(type)) { 666TypeCode tc = Type.GetTypeCode(typeTo); 986switch (Type.GetTypeCode(type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (1)
306switch (Type.GetTypeCode(resultType)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (2)
254var code = Type.GetTypeCode(Type); 302switch (Type.GetTypeCode(valueType)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (1)
246switch (Type.GetTypeCode(type)) {
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
981if (instance != null && instance.Type.IsValueType && Type.GetTypeCode(instance.Type) == TypeCode.Object) {
System.Data (23)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (12)
208else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int64) 229else if (Type.GetTypeCode(value.GetType()) == TypeCode.Boolean) 250else if (Type.GetTypeCode(value.GetType()) == TypeCode.Char) 252else if (Type.GetTypeCode(value.GetType()) == TypeCode.String) 267else if (Type.GetTypeCode(value.GetType()) == TypeCode.DateTime) 275else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 283else if (Type.GetTypeCode(value.GetType()) == TypeCode.Single) 291else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int32) 300else if (Type.GetTypeCode(value.GetType()) == TypeCode.Decimal) 308else if (Type.GetTypeCode(value.GetType()) == TypeCode.Double) 322else if (Type.GetTypeCode(value.GetType()) == TypeCode.Int16) 330else if (Type.GetTypeCode(value.GetType()) == TypeCode.Byte)
fx\src\data\System\Data\Common\DataStorage.cs (1)
330TypeCode tcode = Type.GetTypeCode(dataType);
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
170switch (Type.GetTypeCode(dataType)) { 392if (Type.GetTypeCode(value.GetType()) != TypeCode.Object) {
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
894switch(Type.GetTypeCode(dataType)) { 932default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
fx\src\data\System\Data\Sql\SqlMetaData.cs (4)
1047switch (Type.GetTypeCode(dataType)) { 1119default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType)); 1130switch (Type.GetTypeCode(dataType)) 1305default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
285switch (Type.GetTypeCode(dataType)) { 384default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
System.Data.DataSetExtensions (1)
System\Data\DataRowComparer.cs (1)
70switch (Type.GetTypeCode(a.GetType().GetElementType()))
System.Data.Entity (5)
System\Data\Common\Internal\Materialization\Translator.cs (1)
2152TypeCode typeCode = Type.GetTypeCode(type);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
84switch (Type.GetTypeCode(clrType))
System\Data\Metadata\TypeHelpers.cs (2)
700switch (Type.GetTypeCode(clrType)) 764throw EntityUtil.UnknownDataTypeCode(clrType, Type.GetTypeCode(clrType));
System\Data\SqlClient\SqlProviderServices.cs (1)
415Type.GetTypeCode(value.GetType()) == TypeCode.Object)
System.Data.Linq (17)
parent\DbmlShared\Mapping.cs (2)
485switch (Type.GetTypeCode(type)) { 540switch (Type.GetTypeCode(type))
SqlClient\Common\TypeSystem.cs (1)
200TypeCode tc = Type.GetTypeCode(type);
SqlClient\Query\QueryConverter.cs (1)
2536switch (Type.GetTypeCode(type)) {
SqlClient\Query\SqlFormatter.cs (1)
1242TypeCode tc = Type.GetTypeCode(t);
SqlClient\Query\SqlRetyper.cs (2)
45var tcTo = Type.GetTypeCode(to); 46var tcFrom = Type.GetTypeCode(from);
SqlClient\Reader\ObjectReaderCompiler.cs (5)
2050switch (Type.GetTypeCode(type)) { 2111TypeCode tc = Type.GetTypeCode(valueType); 2229TypeCode tc = Type.GetTypeCode(type); 2290TypeCode tc = Type.GetTypeCode(type); 2339TypeCode tc = Type.GetTypeCode(type);
SqlClient\SqlBuilder.cs (2)
208switch (Type.GetTypeCode(type)) { 238switch (Type.GetTypeCode(type)) {
SqlClient\SqlTypeSystemProvider.cs (3)
1416TypeCode tc = System.Type.GetTypeCode(type); 1521if (System.Type.GetTypeCode(type) == TypeCode.Object && 1536TypeCode tc = System.Type.GetTypeCode(type);
System.Data.Services (5)
System\Data\Services\Parsing\RequestQueryParser.cs (5)
452switch (Type.GetTypeCode(type)) 557TypeCode tc = Type.GetTypeCode(GetNonNullableType(type)); 658TypeCode sourceCode = sourceType.IsEnum ? TypeCode.Object : Type.GetTypeCode(sourceType); 659TypeCode targetCode = targetType.IsEnum ? TypeCode.Object : Type.GetTypeCode(targetType); 2518switch (Type.GetTypeCode(ce.Type))
System.Data.SqlXml (3)
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
327if (Type.GetTypeCode(value.GetType()) == TypeCode.Object) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (2)
455switch(Type.GetTypeCode(type)) { 805typeCodes[i] = Type.GetTypeCode(parameters[i].ParameterType);
System.Runtime.Serialization (17)
System\Runtime\Serialization\CodeGenerator.cs (7)
433TypeCode typeCode = Type.GetTypeCode(type); 820switch (Type.GetTypeCode(type)) 984OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type)); 1058switch (Type.GetTypeCode(valueType)) 1413OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType)); 1476OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType)); 1652OpCode opCode = GetConvOpCode(Type.GetTypeCode(target));
System\Runtime\Serialization\DataContract.cs (1)
805switch (Type.GetTypeCode(type))
System\Runtime\Serialization\ExtensionDataReader.cs (1)
663switch (Type.GetTypeCode(type))
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
949switch (Type.GetTypeCode(itemType))
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
601switch (Type.GetTypeCode(itemType))
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
804switch (Type.GetTypeCode(itemType))
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
593switch (Type.GetTypeCode(itemType))
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
235switch (Type.GetTypeCode(valueType)) 291switch (Type.GetTypeCode(valueType))
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
292switch (Type.GetTypeCode(valueType)) 369switch (Type.GetTypeCode(valueType))
System.ServiceModel (11)
System\ServiceModel\Dispatcher\CodeGenerator.cs (6)
393OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type)); 438switch (Type.GetTypeCode(valueType)) 716OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType)); 742OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType)); 826OpCode opCode = GetConvOpCode(Type.GetTypeCode(target)); 1138switch (Type.GetTypeCode(type))
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (5)
248switch (Type.GetTypeCode(type)) 348switch (Type.GetTypeCode(type)) 373switch (Type.GetTypeCode(type)) 684this.typeCode = Type.GetTypeCode(description.Type.GetElementType()); 689this.typeCode = Type.GetTypeCode(description.Type);
System.ServiceModel.Internals (4)
System\Runtime\TypeHelper.cs (4)
163TypeCode sourceTypeCode = Type.GetTypeCode(source); 164TypeCode destinationTypeCode = Type.GetTypeCode(destination); 313TypeCode sourceTypeCode = Type.GetTypeCode(source.GetType()); 314TypeCode destinationTypeCode = Type.GetTypeCode(typeof(T));
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
54switch (Type.GetTypeCode(parameterType))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
75switch (Type.GetTypeCode(parameterType)) 174switch (Type.GetTypeCode(parameterType))
System.Web.Extensions (5)
UI\WebControls\Dynamic.cs (5)
1339switch (Type.GetTypeCode(type)) { 1505switch (Type.GetTypeCode(ce.Type)) { 1532switch (Type.GetTypeCode(GetNonNullableType(type))) { 1597TypeCode sc = st.IsEnum ? TypeCode.Object : Type.GetTypeCode(st); 1598TypeCode tc = tt.IsEnum ? TypeCode.Object : Type.GetTypeCode(tt);
System.Workflow.Activities (12)
Rules\Expressions.cs (3)
810TypeCode tc = Type.GetTypeCode(lhsValue.GetType()); 2127switch (Type.GetTypeCode(type)) 2747TypeCode argTypeCode = Type.GetTypeCode(argType);
Rules\RuleValidation.cs (9)
1628? Type.GetTypeCode(sourceType.GetGenericArguments()[0]) 1629: Type.GetTypeCode(sourceType); 1631? Type.GetTypeCode(testType.GetGenericArguments()[0]) 1632: Type.GetTypeCode(testType); 1955switch (Type.GetTypeCode(primitive.Value.GetType())) 1988TypeCode lhsTypeCode = Type.GetTypeCode(lhsType); 1989TypeCode rhsTypeCode = Type.GetTypeCode(rhsType); 2617TypeCode tc1 = Type.GetTypeCode(t1); 2618TypeCode tc2 = Type.GetTypeCode(t2);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
581switch (Type.GetTypeCode(typeArgs[0]))
System.Xml (11)
System\Xml\Serialization\CodeGenerator.cs (5)
997OpCode opCode = GetLdindOpCode(Type.GetTypeCode(type)); 1053switch (Type.GetTypeCode(valueType)) { 1438OpCode opCode = GetLdelemOpCode(Type.GetTypeCode(arrayElementType)); 1514OpCode opCode = GetStelemOpCode(Type.GetTypeCode(arrayElementType)); 1685OpCode opCode = GetConvOpCode(Type.GetTypeCode(target));
System\Xml\Serialization\Types.cs (1)
509switch (Type.GetTypeCode(type)) {
System\Xml\Serialization\XmlSerializationWriter.cs (3)
180switch (Type.GetTypeCode(type)) { 228switch (Type.GetTypeCode(t)) { 3062switch (Type.GetTypeCode(type)) {
System\Xml\Serialization\XmlSerializer.cs (2)
739switch (Type.GetTypeCode(primitiveType)) { 810switch (Type.GetTypeCode(primitiveType)) {