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