44 references to DBNull
mscorlib (8)
system\convert.cs (3)
187
return convertible != null? convertible.GetTypeCode() == TypeCode.
DBNull
: false;
252
case TypeCode.
DBNull
:
312
if (rtTargetType == ConvertTypes[(int)TypeCode.
DBNull
])
system\dbnull.cs (1)
44
return TypeCode.
DBNull
;
system\rttype.cs (2)
3636
if (this == Convert.ConvertTypes[(int)TypeCode.
DBNull
])
3637
typeCode = TypeCode.
DBNull
;
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
445
codeATemp[(int)TypeCode.
DBNull
] = InternalPrimitiveTypeE.Invalid;
system\variant.cs (1)
463
case TypeCode.
DBNull
:
System.AddIn.Contract (5)
System\Addin\Contract\RemoteArgument.cs (5)
186
case TypeCode.
DBNull
:
455
this.intrinsicTypeCode = TypeCode.
DBNull
;
463
this.intrinsicTypeCode = TypeCode.
DBNull
;
978
this.intrinsicTypeCode == TypeCode.
DBNull
)
996
this.intrinsicTypeCode == TypeCode.
DBNull
)
System.Core (2)
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
53
case TypeCode.
DBNull
: return new PrimitiveParameterExpression<DBNull>(name);
Microsoft\Scripting\Compiler\ILGen.cs (1)
1008
case TypeCode.
DBNull
:
System.Data (11)
fx\src\data\System\Data\Common\DataStorage.cs (2)
22
DBNull = TypeCode.
DBNull
,
274
case StorageType.DBNull: throw ExceptionBuilder.InvalidStorageType(TypeCode.
DBNull
);
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
911
case TypeCode.
DBNull
: throw ADP.InvalidDataType(TypeCode.
DBNull
);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (2)
298
case TypeCode.
DBNull
: throw ADP.InvalidDataType(TypeCode.
DBNull
);
fx\src\data\System\Data\Sql\SqlMetaData.cs (3)
1052
case TypeCode.
DBNull
: /* DBNull passes through as is for all types */ break;
1136
case TypeCode.
DBNull
: throw ADP.InvalidDataType(TypeCode.
DBNull
);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
368
case TypeCode.
DBNull
: throw ADP.InvalidDataType(TypeCode.
DBNull
);
System.Data.Entity (1)
System\Data\Metadata\TypeHelpers.cs (1)
730
case TypeCode.
DBNull
:
System.Data.Linq (1)
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2053
case TypeCode.
DBNull
:
System.Runtime.Serialization (7)
System\Runtime\Serialization\CodeGenerator.cs (3)
1097
case TypeCode.
DBNull
:
1372
case TypeCode.
DBNull
:
1437
case TypeCode.
DBNull
:
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
269
case TypeCode.
DBNull
:
324
case TypeCode.
DBNull
:
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
340
case TypeCode.
DBNull
:
417
case TypeCode.
DBNull
:
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
469
case TypeCode.
DBNull
:
System.Web (3)
UI\WebControls\Parameter.cs (2)
286
if (type == TypeCode.
DBNull
) {
520
case TypeCode.
DBNull
:
UI\WebControls\SqlDataSourceView.cs (1)
1212
if (parameter.DbType != DbType.Object || (parameter.Type != TypeCode.Empty && parameter.Type != TypeCode.
DBNull
)) {
System.Web.DynamicData (2)
DynamicData\DataSourceUtil.cs (2)
37
typeNameToTypeCode[typeof(Object)] = TypeCode.
DBNull
;
40
typeNameToTypeCode[typeof(Byte[])] = TypeCode.
DBNull
;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
330
case TypeCode.
DBNull
:
System\Data\WebControls\EntityDataSourceView.cs (1)
1687
if (parameter.TypeCode == TypeCode.
DBNull
)
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
1114
case TypeCode.
DBNull
: