Implemented interface member:
property
IsValueType
System.Runtime.InteropServices._Type.IsValueType
447 references to IsValueType
mscorlib (42)
system\collections\concurrent\PartitionerStatic.cs (1)
1710
if (typeof(TSource).
IsValueType
)
system\convert.cs (1)
332
if(conversionType.
IsValueType
) {
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
370
result = type.
IsValueType
;
system\reflection\customattribute.cs (6)
281
if (type.
IsValueType
)
1335
return (caType.
IsValueType
) ? EmptyArray<Object>.Value : CreateAttributeArrayHelper(caType, 0);
1355
bool useObjectArray = (caType == null || caType.
IsValueType
|| caType.ContainsGenericParameters);
1456
bool useObjectArray = (caType == null || caType.
IsValueType
|| caType.ContainsGenericParameters);
1664
bool useObjectArray = (attributeFilterType == null || attributeFilterType.
IsValueType
|| attributeFilterType.ContainsGenericParameters);
1932
if (ctor == null && !attributeType.
IsValueType
)
system\reflection\emit\signaturehelper.cs (3)
403
if (clsArgument.
IsValueType
)
426
if (clsArgument.
IsValueType
)
495
else if (clsArgument.
IsValueType
)
system\reflection\emit\typebuilder.cs (2)
517
if (destType.
IsValueType
)
2364
if (m_constructorCount == 0 && ((m_iAttr & TypeAttributes.Interface) == 0) && !
IsValueType
&& ((m_iAttr & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed)))
system\reflection\emit\typebuilderinstantiation.cs (1)
208
protected override bool IsValueTypeImpl() { return m_type.
IsValueType
; }
system\reflection\typedelegator.cs (1)
212
return typeImpl.
IsValueType
;
system\rttype.cs (4)
688
bool isValueType = declaringType.
IsValueType
;
5213
&& (IsGenericCOMObjectImpl() ||
IsValueType
))
5403
if (!ace.m_type.
IsValueType
)
5525
Contract.Assert(ace.m_ctor != null || this.
IsValueType
);
system\runtime\interopservices\registrationservices.cs (3)
351
if (!type.IsClass && !type.
IsValueType
)
360
if (!type.
IsValueType
&& type.GetConstructor(BindingFlags.Instance | BindingFlags.Public,null,new Type[0],null) == null)
1082
if (!type.
IsValueType
)
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (1)
237
else if ( ReturnType.
IsValueType
)
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
352
else if (type.
IsValueType
|| obj is Delegate)
426
else if (type.
IsValueType
)
system\runtime\remoting\message.cs (3)
542
if (paramType.
IsValueType
)
564
if (pt.
IsValueType
)
3530
if (type.
IsValueType
)
system\runtime\remoting\realproxy.cs (1)
542
if (paramType.
IsValueType
)
system\runtime\serialization\formatter.cs (1)
172
} else if (varType.
IsValueType
) {
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (4)
754
if (!pr.PRarrayElementType.
IsValueType
&& !pr.PRisLowerBound)
920
if ((objectPr.PRarrayElementType.
IsValueType
) && (pr.PRarrayElementTypeCode == InternalPrimitiveTypeE.Invalid))
1099
SerTrace.Log( this, "AddValue 2 ",pr.PRnewObj," is value type ",pr.PRnewObj.GetType().
IsValueType
);
1101
if ((pr.PRobjectInfo != null) && ((object)pr.PRobjectInfo.objectType != null) && (pr.PRobjectInfo.objectType.
IsValueType
))
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (2)
823
if (!arrayElemType.
IsValueType
)
1101
if ((object)type != null && type.
IsValueType
)
system\runtime\serialization\objectmanager.cs (2)
1194
if (idOfContainingObj!=0 && ((field!=null && field.FieldType.
IsValueType
) || arrayIndex!=null)) {
1342
if (idOfContainer!=0 && ((field!=null && field.FieldType.
IsValueType
) || arrayIndex!=null)) {
system\runtime\serialization\valuetypefixupinfo.cs (1)
60
if (((((FieldInfo)member).FieldType).
IsValueType
) && containerID==0) {
system\type.cs (1)
1063
get {return ((GetAttributeFlagsImpl() & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class && !
IsValueType
);}
system\typedreference.cs (1)
58
if (i < (flds.Length - 1) && !fieldType.
IsValueType
)
PresentationBuildTasks (2)
Framework\System\Windows\Markup\XamlReaderHelper.cs (2)
3024
parentType.
IsValueType
))
3299
parentType.
IsValueType
))
PresentationCore (7)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (4)
70
elementType1.
IsValueType
&&
72
elementType2.
IsValueType
&&
197
if (type.
IsValueType
|| type == typeof(string))
207
if (elementType.
IsValueType
&& type.GetArrayRank() == 1)
Core\CSharp\System\Windows\Diagnostics\XamlSourceInfoHelper.cs (1)
116
if (obj is string || obj.GetType().
IsValueType
)
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (2)
455
if (elementType == null || !elementType.
IsValueType
)
587
if (elementType == null || !elementType.
IsValueType
)
PresentationFramework (11)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (3)
332
(o == null && !destinationType.
IsValueType
) ))
586
if (o == null && !_sourceType.
IsValueType
)
628
(o == null && !_targetType.
IsValueType
))
src\Framework\MS\Internal\Data\DynamicValueConverter.cs (2)
61
if (!targetType.
IsValueType
)
86
if (!sourceType.
IsValueType
)
src\Framework\MS\Internal\WeakHashtable.cs (2)
59
Debug.Assert(!key.GetType().
IsValueType
, "WeakHashtable doesn't support value-type keys. Use WeakObjectHashtable instead.");
242
if (tKey == typeof(Object) || tKey.
IsValueType
)
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
620
if (value != null && !value.GetType().
IsValueType
&&
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1612
if (!type.
IsValueType
)
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (1)
697
if ( type.
IsValueType
src\Framework\System\Windows\TemplateContent.cs (1)
1250
(type != null && type.
IsValueType
))
System (1)
sys\system\configuration\SettingsPropertyValue.cs (1)
142
if (Property.PropertyType.
IsValueType
)
System.Activities (25)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
891
bool subTreeIsLocationExpression = isLocationExpression && memberExpression.Member.DeclaringType.
IsValueType
;
System\Activities\Activity.cs (1)
1280
Fx.Assert(extensionType != null && !extensionType.
IsValueType
, "caller should verify we have a valid reference type");
System\Activities\ActivityMetadata.cs (1)
275
if (extensionType.
IsValueType
)
System\Activities\CodeActivityMetadata.cs (1)
175
if (extensionType.
IsValueType
)
System\Activities\Expressions\ExpressionServices.cs (2)
270
if (!typeof(TOperand).
IsValueType
)
1100
bool isValueType = typeof(TOperand).
IsValueType
;
System\Activities\Expressions\FieldReference.cs (1)
42
else if (typeof(TOperand).
IsValueType
)
System\Activities\Expressions\IndexerReference.cs (1)
66
if (typeof(TOperand).
IsValueType
)
System\Activities\Expressions\Literal.cs (1)
46
if (!literalType.
IsValueType
&& literalType != TypeHelper.StringType)
System\Activities\Expressions\MethodCallExpressionHelper.cs (5)
32
if (variable.Type.
IsValueType
&& Nullable.GetUnderlyingType(variable.Type) == null)
46
if (variable.Type.
IsValueType
)
84
if (methodInfo.DeclaringType.
IsValueType
)
117
if (!isConstructor && returnType.
IsValueType
)
158
if (!methodInfo.IsStatic && methodInfo.DeclaringType.
IsValueType
&& valueTypeReference)
System\Activities\Expressions\New.cs (1)
87
if (constructorInfo == null && (!typeof(TResult).
IsValueType
|| types.Length > 0))
System\Activities\Expressions\PropertyReference.cs (1)
48
else if (typeof(TOperand).
IsValueType
)
System\Activities\Expressions\ValueTypeFieldReference.cs (1)
38
if (!typeof(TOperand).
IsValueType
)
System\Activities\Expressions\ValueTypeIndexerReference.cs (1)
66
if (!typeof(TOperand).
IsValueType
)
System\Activities\Expressions\ValueTypePropertyReference.cs (1)
47
if (!typeof(TOperand).
IsValueType
)
System\Activities\ExpressionUtilities.cs (4)
358
if (this.fieldInfo.DeclaringType.
IsValueType
)
528
if (argument.Type.
IsValueType
)
754
if (this.propertyInfo.DeclaringType.
IsValueType
)
1010
bool subTreeIsLocationExpression = isLocationExpression && memberExpression.Member.DeclaringType.
IsValueType
;
System\Activities\NativeActivityMetadata.cs (1)
391
if (extensionType.
IsValueType
)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
410
if (type.
IsValueType
)
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (3)
140
if (this.ValueType.
IsValueType
)
192
else if (this.ValueType.
IsValueType
)
267
else if (!this.ValueType.
IsValueType
&& this.Text.Equals(Null))
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (2)
357
Fx.Assert(type == null || !type.
IsValueType
, "Value type should not have null value");
394
if (!genericType.
IsValueType
&& caseString == FlowSwitchNullCaseKeyIdentifier)
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
204
if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.
IsValueType
|| pair.Value[0].PropertyType.Equals(typeof(string))))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1103
protected override bool IsValueTypeImpl() { return _baseReflectionType.
IsValueType
; }
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
81
if (instanceType.
IsValueType
)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
54
Fx.Assert(!type.
IsValueType
, "hmm why would some one search for modelitems for value types?");
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
497
if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.
IsValueType
)
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (2)
41
if (!candidate.
IsValueType
)
75
return type.
IsValueType
|| (!type.IsAbstract && type.GetConstructor(Type.EmptyTypes) != null);
System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
23
if (editedType.IsPrimitive || editedType.
IsValueType
||
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2164
if (value == DependencyProperty.UnsetValue || expressionType == null || !expressionType.
IsValueType
)
System.ComponentModel.DataAnnotations (3)
DataAnnotations\CustomValidationAttribute.cs (1)
280
if (t.
IsValueType
&& (!t.IsGenericType || t.GetGenericTypeDefinition() != typeof(Nullable<>))) {
DataAnnotations\EnumDataTypeAttribute.cs (1)
45
if (!valueType.
IsValueType
&& valueType != typeof(string)) {
DataAnnotations\Validator.cs (1)
302
return !destinationType.
IsValueType
||
System.Configuration (2)
System\Configuration\ConfigurationProperty.cs (2)
44
else if (type.
IsValueType
) {
256
else if (_type.
IsValueType
) {
System.Core (84)
Microsoft\Scripting\Actions\DynamicMetaObject.cs (1)
118
if (ct.
IsValueType
) {
Microsoft\Scripting\Actions\DynamicObject.cs (1)
509
if (binder.ReturnType.
IsValueType
&& Nullable.GetUnderlyingType(binder.ReturnType) == null) {
Microsoft\Scripting\Ast\BinaryExpression.cs (6)
382
method == null && !left.
IsValueType
&& !right.
IsValueType
;
602
if (method != null && method.ReturnType.
IsValueType
&& !TypeUtils.IsNullableType(method.ReturnType)) {
630
method.ReturnType.
IsValueType
&& !TypeUtils.IsNullableType(method.ReturnType)) {
1334
if (left.Type.
IsValueType
&& !TypeUtils.IsNullableType(left.Type)) {
1368
if (left.
IsValueType
&& !TypeUtils.IsNullableType(left)) {
Microsoft\Scripting\Ast\ConstantExpression.cs (1)
129
if (value == null && type.
IsValueType
&& !TypeUtils.IsNullableType(type)) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
669
if (before.
IsValueType
) {
674
} else if (!after.
IsValueType
) {
Microsoft\Scripting\Ast\NewExpression.cs (1)
215
if (!type.
IsValueType
) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (1)
84
if (cType.
IsValueType
&& !cType.IsNullableType()) {
Microsoft\Scripting\Ast\TypeUtils.cs (14)
44
if (type.
IsValueType
&& !IsNullableType(type)) {
164
if (!dest.
IsValueType
&& !src.
IsValueType
&& dest.IsAssignableFrom(src)) {
176
if (instanceType.
IsValueType
) {
349
if (sourceArgument.
IsValueType
|| destArgument.
IsValueType
)
383
if (left.
IsValueType
|| right.
IsValueType
) {
401
if (left.IsInterface && !right.
IsValueType
) {
404
if (right.IsInterface && !left.
IsValueType
) {
409
if (!left.
IsValueType
&& !right.
IsValueType
) {
421
Debug.Assert(left.
IsValueType
);
591
if (source.
IsValueType
&& (destination == typeof(object) || destination == typeof(System.ValueType)))
Microsoft\Scripting\Ast\UnaryExpression.cs (5)
386
if (method != null && method.ReturnType.
IsValueType
&& !TypeUtils.IsNullableType(method.ReturnType)) {
406
method.ReturnType.
IsValueType
&& !TypeUtils.IsNullableType(method.ReturnType)) {
666
if (type.
IsValueType
&& !TypeUtils.IsNullableType(type)) {
684
if (!type.
IsValueType
) throw Error.InvalidUnboxType();
836
if (value.Type.
IsValueType
) throw Error.ArgumentMustNotHaveValueType();
Microsoft\Scripting\Compiler\BoundConstants.cs (1)
186
if (type.
IsValueType
) {
Microsoft\Scripting\Compiler\ConstantCheck.cs (1)
90
if (operandType.
IsValueType
&& !operandType.IsNullableType()) {
Microsoft\Scripting\Compiler\ILGen.cs (16)
103
if (type.
IsValueType
) {
137
if (type.
IsValueType
) {
165
if (!type.
IsValueType
) {
244
if (type.
IsValueType
) {
638
if (!typeFrom.
IsValueType
&& typeTo.
IsValueType
) {
640
} else if (typeFrom.
IsValueType
&& !typeTo.
IsValueType
) {
645
} else if (!typeFrom.
IsValueType
&& !typeTo.
IsValueType
) {
824
if (typeTo.
IsValueType
)
834
Debug.Assert(typeTo.
IsValueType
);
868
Debug.Assert(nullableType.
IsValueType
);
875
Debug.Assert(nullableType.
IsValueType
);
882
Debug.Assert(nullableType.
IsValueType
);
989
if (type.
IsValueType
) {
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
199
Debug.Assert(type.
IsValueType
&& !TypeUtils.IsNullableType(type));
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (1)
324
if (!type.IsPrimitive && type.
IsValueType
&& !type.IsEnum) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (17)
326
if (obj != null && obj.Type.
IsValueType
) {
346
if (callOp == OpCodes.Callvirt && objectType.
IsValueType
) {
383
if (callOp == OpCodes.Callvirt && objectType.
IsValueType
) {
413
if (mi.DeclaringType.
IsValueType
) {
523
Debug.Assert(node.Type.
IsValueType
, "Only value type may have constructor not set.");
563
Debug.Assert(!type.
IsValueType
);
576
if (type.
IsValueType
) {
719
if (type.
IsValueType
) {
814
if (binding.Member is PropertyInfo && type.
IsValueType
) {
817
if (type.
IsValueType
) {
827
if (binding.Member is PropertyInfo && type.
IsValueType
) {
830
if (type.
IsValueType
) {
841
if (init.NewExpression.Type.
IsValueType
&& init.Bindings.Count > 0) {
874
if (init.NewExpression.Type.
IsValueType
) {
965
if (!arg.Type.
IsValueType
) {
984
if (resultType.
IsValueType
) {
1044
if (!arg.Type.
IsValueType
) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (5)
100
} else if (b.Left.Type.
IsValueType
) {
204
if (b.Right.Type.
IsValueType
) {
212
Debug.Assert(!b.Left.Type.
IsValueType
);
536
Debug.Assert(!node.Right.Type.
IsValueType
);
545
Debug.Assert(!node.Left.Type.
IsValueType
);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (4)
220
if (operandType.
IsValueType
) {
272
Debug.Assert(node.Type.
IsValueType
&& !TypeUtils.IsNullableType(node.Type));
301
if (node.IsLifted && (!node.Type.
IsValueType
|| !node.Operand.Type.
IsValueType
)) {
Microsoft\Scripting\Compiler\StackSpiller.Bindings.cs (4)
96
if (target.Type.
IsValueType
&& _binding.Member is System.Reflection.PropertyInfo) {
113
if (memberTemp.Type.
IsValueType
) {
166
if (target.Type.
IsValueType
&& _binding.Member is System.Reflection.PropertyInfo) {
184
if (memberTemp.Type.
IsValueType
) {
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
981
if (instance != null && instance.Type.
IsValueType
&& Type.GetTypeCode(instance.Type) == TypeCode.Object) {
System\Linq\Parallel\Scheduling\Scheduling.cs (1)
83
if (typeof(T).
IsValueType
)
System.Data (12)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
204
if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.
IsValueType
|| pair.Value[0].PropertyType.Equals(typeof(string))))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1103
protected override bool IsValueTypeImpl() { return _baseReflectionType.
IsValueType
; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
81
if (instanceType.
IsValueType
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
54
Fx.Assert(!type.
IsValueType
, "hmm why would some one search for modelitems for value types?");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
497
if (typeof(Type).IsAssignableFrom(property.PropertyType) || property.PropertyType.
IsValueType
)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (2)
41
if (!candidate.
IsValueType
)
75
return type.
IsValueType
|| (!type.IsAbstract && type.GetConstructor(Type.EmptyTypes) != null);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToStringValueConverter.cs (1)
23
if (editedType.IsPrimitive || editedType.
IsValueType
||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2164
if (value == DependencyProperty.UnsetValue || expressionType == null || !expressionType.
IsValueType
)
fx\src\data\System\Data\Common\DataStorage.cs (2)
410
result = dataType.
IsValueType
;
413
Debug.Assert(result == dataType.
IsValueType
, "typeCode mismatches dataType");
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
257
else if (t.
IsValueType
) {
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
204
if (type.
IsValueType
)
System.Data.Entity (17)
System\Data\Common\EntityUtil.cs (1)
957
if (destinationType.
IsValueType
&& destinationType.IsGenericType && (typeof(Nullable<>) == destinationType.GetGenericTypeDefinition()))
System\Data\Common\Internal\Materialization\Translator.cs (1)
386
if (result.
IsValueType
)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (6)
122
if (mi.DeclaringType.
IsValueType
)
200
if (mi.DeclaringType.
IsValueType
)
230
if (realType.
IsValueType
)
323
if (realType.
IsValueType
)
366
if (elementType.
IsValueType
)
408
if (setterMethodInfo.DeclaringType.
IsValueType
)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (3)
42
if (type.
IsValueType
&& !type.IsEnum)
726
return !clrProperty.PropertyType.
IsValueType
&& !clrProperty.PropertyType.IsAssignableFrom(typeof(string)) && clrProperty.Name == cspaceMember.Name;
754
bool nullableFacetValue = !isKeyMember && (!clrProperty.PropertyType.
IsValueType
|| Nullable.GetUnderlyingType(clrProperty.PropertyType) != null);
System\Data\Objects\ELinq\TypeSystem.cs (1)
31
if (!type.
IsValueType
||
System\Data\Objects\FieldDescriptor.cs (1)
80
if (result.
IsValueType
&&
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1292
if (propertyType.
IsValueType
)
1297
if (propertyType.
IsValueType
)
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
108
memberClrType.
IsValueType
&&
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
137
if (type.IsAbstract || (null == constructor && !type.
IsValueType
))
System.Data.Entity.Design (3)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
600
if (parameterType.
IsValueType
)
635
CodeTypeReference argumentType = clrType.
IsValueType
? TypeReference.NullableForType(clrType) : TypeReference.ForType(clrType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
811
if (type.
IsValueType
)
System.Data.Linq (30)
IdentityManager.cs (1)
176
if (o == null && typeof(V1).
IsValueType
) {
Mapping\Accessors.cs (3)
49
if (!objectType.
IsValueType
) {
102
if (!objectType.
IsValueType
) {
114
if (!objectType.
IsValueType
) {
Mapping\AttributedMetaModel.cs (1)
1159
return this.isNullableType || !this.type.
IsValueType
;
Mapping\MappedMetaModel.cs (2)
991
this.canBeNull = cmap.CanBeNull == null ? this.isNullableType || !this.type.
IsValueType
: (bool)cmap.CanBeNull;
1793
get { return !this.type.
IsValueType
|| TypeSystem.IsNullableType(this.type); }
SqlClient\Common\TypeSystem.cs (1)
64
return !type.
IsValueType
|| IsNullableType(type);
SqlClient\Query\SqlMultiplexer.cs (1)
241
if (expr.ClrType.
IsValueType
&& !TypeSystem.IsNullableType(expr.ClrType)) {
SqlClient\Query\TypeSource.cs (1)
50
if (sourceType != null && TypeSystem.GetNonNullableType(sourceType).
IsValueType
) {
SqlClient\Reader\ObjectReaderCompiler.cs (19)
896
if (actualType.
IsValueType
) {
929
return (mi.IsStatic || mi.DeclaringType.
IsValueType
) ? OpCodes.Call : OpCodes.Callvirt;
951
else if (sn.ClrType.
IsValueType
) {
1321
if (loc.LocalType.
IsValueType
) {
1437
if (clrType.
IsValueType
&& !TypeSystem.IsNullableType(clrType)) {
1445
if (clrType.
IsValueType
) {
1569
!(!actualType.
IsValueType
&& actualType.IsSubclassOf(expectedType))
1579
if (expectedType == typeof(object) && actualType.
IsValueType
) {
1582
else if (actualType == typeof(object) && expectedType.
IsValueType
) {
1587
&& !actualType.
IsValueType
&& !expectedType.
IsValueType
) {
1777
if (actualType.
IsValueType
) {
1787
if (expectedType.
IsValueType
) {
2054
if (type.
IsValueType
) {
2079
if (type.
IsValueType
) {
2158
if (type.
IsValueType
) {
2177
if (type.
IsValueType
) {
2255
if (type.
IsValueType
) {
2328
if (type.
IsValueType
) {
SqlClient\SqlBuilder.cs (1)
199
if (type.
IsValueType
&& IsNullable(type)) {
System.Data.Services (16)
parent\Client\System\Data\Services\Client\ReferenceEqualityComparer.cs (1)
132
Debug.Assert(!typeof(T).
IsValueType
, "!typeof(T).IsValueType -- can't use reference equality in a meaningful way with value types");
System\Data\Services\DataService.cs (1)
1211
else if (description.Property.Type.
IsValueType
)
System\Data\Services\OpenTypes\OpenTypeMethods.cs (1)
716
return expression.Type.
IsValueType
? Expression.Convert(expression, typeof(object)) : expression;
System\Data\Services\Parsing\RequestQueryParser.cs (5)
640
if (!target.
IsValueType
)
1531
if (equality && !left.Type.
IsValueType
&& !right.Type.
IsValueType
)
2544
if (type.
IsValueType
|| exact)
2553
if (WebUtil.IsNullableType(expr.Type) && type.
IsValueType
)
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
789
if (type.
IsValueType
|| CommonUtil.IsUnsupportedType(type))
System\Data\Services\Providers\ResourceType.cs (1)
144
if (instanceType.
IsValueType
)
System\Data\Services\Serializers\MetadataSerializer.cs (1)
562
if (resourceProperty.IsOfKind(ResourcePropertyKind.Key) || (resourceProperty.Type.
IsValueType
&& Nullable.GetUnderlyingType(resourceProperty.Type) == null))
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
387
Debug.Assert(!expectedType.InstanceType.
IsValueType
, "!expectedType.Type.IsValueType -- checked in the resource type constructor.");
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
416
Debug.Assert(!expectedType.InstanceType.
IsValueType
, "!expectedType.Type.IsValueType -- checked in the resource type constructor.");
803
if (property.Type.
IsValueType
)
System\Data\Services\WebUtil.cs (2)
592
if (targetType.
IsValueType
)
857
return !type.
IsValueType
|| IsNullableType(type);
System.Data.Services.Client (5)
System\Data\Services\Client\ClientType.cs (2)
152
(!ptype.
IsValueType
|| pinfo.CanWrite) &&
370
return !type.
IsValueType
|| (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
366
if (body.Type.
IsValueType
)
System\Data\Services\Client\ReferenceEqualityComparer.cs (1)
132
Debug.Assert(!typeof(T).
IsValueType
, "!typeof(T).IsValueType -- can't use reference equality in a meaningful way with value types");
System\Data\Services\Client\Util.cs (1)
436
return !type.
IsValueType
|| IsNullableType(type);
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
119
if (!type.
IsValueType
||
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
734
if (type.
IsValueType
)
System.Data.SqlXml (4)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
884
if (clrTypeSrc.
IsValueType
) {
889
else if (clrTypeDst.
IsValueType
) {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3453
else if (ndName.NamespaceUri.Length != 0 && !clrTypeRetSrc.
IsValueType
){
System\Xml\Xsl\ListBase.cs (1)
169
if((value == null && !typeof(T).
IsValueType
) || (value is T))
System.Management (2)
Instrumentation\SchemaMapping.cs (2)
337
if(t2.
IsValueType
)
356
if(t2.
IsValueType
)
System.Runtime.Remoting (3)
metadata\wsdlwriter.cs (3)
1378
_bStruct = type.
IsValueType
;
1447
!type.
IsValueType
&&
2144
else if (type.
IsValueType
)
System.Runtime.Serialization (44)
System\Runtime\Serialization\ClassDataContract.cs (5)
398
if (type.
IsValueType
)
713
this.IsValueType = type.
IsValueType
;
834
if (isReference && type.
IsValueType
)
1010
if (CollectionDataContract.IsCollection(memberContract.MemberType, false /*isConstructorRequired*/, skipIfReadOnlyContract) && !memberContract.MemberType.
IsValueType
)
1321
if (type.
IsValueType
)
System\Runtime\Serialization\CodeExporter.cs (1)
558
xmlContract.IsValueType = type.
IsValueType
;
System\Runtime\Serialization\CodeGenerator.cs (11)
434
if ((typeCode == TypeCode.Object && type.
IsValueType
) ||
634
if (methodInfo.IsVirtual && !methodInfo.DeclaringType.
IsValueType
)
733
return objType.
IsValueType
&& !objType.IsPrimitive;
818
if (type.
IsValueType
)
1192
if (localBuilder.LocalType.
IsValueType
)
1289
if (argBuilder.ArgType.
IsValueType
)
1648
if (target.
IsValueType
)
1650
if (source.
IsValueType
)
1673
if (source.
IsValueType
)
1773
if (type.
IsValueType
)
1783
if (type.
IsValueType
)
System\Runtime\Serialization\CollectionDataContract.cs (1)
995
if (!type.
IsValueType
)
System\Runtime\Serialization\DataContract.cs (2)
1104
isValueType = type.
IsValueType
;
2019
return !type.
IsValueType
||
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (8)
265
if (type.
IsValueType
&& !classContract.IsNonAttributedType)
277
if (type.
IsValueType
)
530
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.TypeOfObject) || nullables != 0 || type.
IsValueType
)
543
else if (type.
IsValueType
)
557
if (type.
IsValueType
)
573
if (!type.
IsValueType
)
582
if (type.
IsValueType
)
674
if (type.
IsValueType
)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
555
if (type.
IsValueType
)
668
if (memberType.
IsValueType
&& !isNullableOfT)
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
80
if (UnderlyingType.
IsValueType
)
98
if (UnderlyingType.
IsValueType
)
System\Runtime\Serialization\XmlDataContract.cs (2)
313
if (type.
IsValueType
)
358
if (type.
IsValueType
)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (8)
258
if (type.
IsValueType
&& !classContract.IsNonAttributedType)
270
if (type.
IsValueType
)
486
if ((primitiveContract != null && primitiveContract.UnderlyingType != Globals.TypeOfObject) || nullables != 0 || type.
IsValueType
)
499
else if (type.
IsValueType
)
513
if (type.
IsValueType
)
529
if (!type.
IsValueType
)
538
if (type.
IsValueType
)
633
if (type.
IsValueType
)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
547
if (type.
IsValueType
)
645
if (memberType.
IsValueType
&& !isNullableOfT)
System.ServiceModel (18)
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (1)
147
if (regServices.TypeRepresentsComType(t) || t.
IsValueType
)
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
274
if (t.
IsValueType
)
System\ServiceModel\Description\MessageContractExporter.cs (1)
958
return !type.
IsValueType
||
System\ServiceModel\Dispatcher\CodeGenerator.cs (8)
321
return objType.
IsValueType
&& !objType.IsPrimitive;
543
if (localBuilder.LocalType.
IsValueType
)
640
if (argBuilder.ArgType.
IsValueType
)
822
if (target.
IsValueType
)
824
if (source.
IsValueType
)
856
if (source.
IsValueType
)
1112
if (type.
IsValueType
)
1136
if (type.
IsValueType
)
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
152
isDetailObjectValid = !detailType.
IsValueType
;
System\ServiceModel\Dispatcher\InvokerUtil.cs (3)
104
if (type.
IsValueType
)
273
if (!parameterType.
IsValueType
)
309
if (targetType.
IsValueType
)
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
339
return (parameterType.
IsValueType
&& parameterType != typeof(void)) ? Activator.CreateInstance(parameterType) : null;
System\ServiceModel\SynchronizedCollection.cs (1)
305
if (typeof(T).
IsValueType
)
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
266
if ((value is T) || (value == null && !typeof(T).
IsValueType
))
System.ServiceModel.Internals (8)
System\Runtime\TypeHelper.cs (8)
40
return !destinationType.
IsValueType
|| IsNullableType(destinationType);
64
Fx.Assert(!sourceType.
IsValueType
&& !destinationType.
IsValueType
, "AreReferenceTypesCompatible can only be used for reference types");
109
if (typeof(T).
IsValueType
&& !IsNullableType(typeof(T)))
279
if (sourceType.
IsValueType
&& (destinationType == ObjectType || destinationType == typeof(ValueType)))
560
if (!type.
IsValueType
)
579
return type.
IsValueType
&& IsNullableType(type);
584
if (!type.
IsValueType
)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
170
if (parameterType.
IsValueType
&& parameter == null)
System.Web (7)
Compilation\CodeDOMUtility.cs (1)
272
if (destinationType.
IsValueType
) {
ModelBinding\MutableObjectModelBinder.cs (1)
52
if (propertyType.
IsValueType
) {
ModelBinding\TypeHelpers.cs (1)
30
return (!type.
IsValueType
|| IsNullableValueType(type));
Profile\ProfileModule.cs (1)
169
if (length == -1 && !pp.Property.PropertyType.
IsValueType
) // Null Value
UI\ControlBuilder.cs (1)
2435
if (entry.Type.
IsValueType
&& evalValue == null) {
UI\WebParts\PersonalizationStateQuery.cs (1)
81
if ((value == null && valueType.
IsValueType
) ||
Util\FastPropertyAccessor.cs (1)
227
else if (propertyType.
IsValueType
) {
System.Web.DynamicData (1)
DynamicData\Util\Misc.cs (1)
118
return Nullable.GetUnderlyingType(type) != null || !type.
IsValueType
;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
484
return !type.
IsValueType
|| IsNullableType(type, out type);
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
114
column.AllowDBNull = !propertyType.
IsValueType
;
System.Web.Extensions (13)
Script\Serialization\ObjectConverter.cs (2)
544
if (t.
IsValueType
) {
569
return type != null && type.
IsValueType
&&
Script\Services\ServicesUtilities.cs (1)
64
if (type.
IsValueType
) {
UI\WebControls\Dynamic.cs (10)
766
if (isEquality && !left.Type.
IsValueType
&& !right.Type.
IsValueType
) {
1129
if (!type.
IsValueType
|| IsNullableType(type))
1156
if (exprType.
IsValueType
&& type.
IsValueType
) {
1497
if (!type.
IsValueType
|| IsNullableType(type))
1525
if (type.
IsValueType
|| exact) return Expression.Convert(expr, type);
1593
if (!target.
IsValueType
) return target.IsAssignableFrom(source);
1792
if (left.Type.
IsValueType
) left = Expression.Convert(left, typeof(object));
1793
if (right.Type.
IsValueType
) right = Expression.Convert(right, typeof(object));
System.Windows.Forms (11)
winforms\Managed\System\WinForms\BindingSource.cs (1)
1653
if (value == null && itemType.
IsValueType
) {
winforms\Managed\System\WinForms\Formatter.cs (2)
72
if (oldTargetType.
IsValueType
&& result == null && !isNullableTargetType)
500
return (type != null && !type.
IsValueType
) ? null : defaultDataSourceNullValue;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
540
if (!isImmutable && !PropertyType.
IsValueType
) {
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (1)
184
if (type.
IsValueType
) {
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
106
if (mergedPd.PropertyType.
IsValueType
|| (Flags & GridEntry.FLAG_IMMUTABLE) != 0) {
131
if (mergedPd.PropertyType.
IsValueType
|| (Flags & GridEntry.FLAG_IMMUTABLE) != 0) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
127
if (ge.PropertyValue == owner || (owner.GetType().
IsValueType
&& owner.GetType() == ge.PropertyValue.GetType())) {
360
if (propType != null && (propType.IsArray || propType.
IsValueType
|| propType.IsPrimitive)) {
486
bool isValueType = owner.GetType().
IsValueType
;
838
treatAsValueType = propType.
IsValueType
|| propType.IsArray;
System.Workflow.Activities (18)
Common\BasePropertyDescriptor.cs (1)
473
if (PropertyType != null && !PropertyType.
IsValueType
)
Executors\InvokeBase.cs (1)
89
if (source == null || source.GetType().
IsValueType
)
LocalService\MethodMessage.cs (1)
173
if (source == null || source.GetType().
IsValueType
)
Rules\Executor.cs (3)
797
if (toType.
IsValueType
)
830
if ((currentType.
IsValueType
) && (toType.
IsValueType
))
Rules\Expressions.cs (3)
2061
if (fromType2.
IsValueType
&& toType2.
IsValueType
)
2982
if ((resultType.
IsValueType
) && (parameters.Count == 0))
Rules\Helpers.cs (3)
64
return ((type.
IsValueType
) && (type.IsGenericType) && (type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))));
74
return ((type.
IsValueType
) && (!type.IsGenericType) && (type != typeof(string)));
82
if (original.GetType().
IsValueType
)
Rules\Literal.cs (2)
737
if ((!lhs.
IsValueType
) && (!rhs.
IsValueType
))
Rules\Parser\Parser.cs (1)
1926
if ((type.
IsValueType
) && (arguments.Count == 0))
Rules\RuleValidation.cs (3)
1153
if (fromType.
IsValueType
&& toType.
IsValueType
&& IsExplicitNumericConversion(fromType, toType))
1618
return ((type.
IsValueType
) && (!type.IsPrimitive));
System.Workflow.ComponentModel (9)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
1135
if (this.
IsValueType
|| ((constructors.Count == 0) && !this.IsAbstract))
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
77
if (!dependencyProperty.PropertyType.
IsValueType
&&
AuthoringOM\DependencyProperty.cs (1)
241
if (propertyType.
IsValueType
)
AuthoringOM\Serializer\DictionaryMarkupSerializer.cs (2)
87
if ((!entry.Value.GetType().
IsValueType
&& entry.Value == childObj) ||
88
(entry.Value.GetType().
IsValueType
&& entry.Value.Equals(childObj)))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (3)
564
bool key = entry.HasValue && ((!entry.Value.GetType().
IsValueType
&& entry.Value.Key == entry.Value.Value && entry.Value.Value == obj) ||
565
(entry.Value.GetType().
IsValueType
&& entry.Value.Key.Equals(entry.Value.Value) && entry.Value.Value.Equals(obj))) &&
2903
else if (!this.contentProperty.PropertyType.
IsValueType
&&
Shared\BasePropertyDescriptor.cs (1)
472
if (PropertyType != null && !PropertyType.
IsValueType
)
System.WorkflowServices (2)
System\Workflow\Activities\ReceiveActivity.cs (2)
1399
!((methodInfo.ReturnType.IsPrimitive || methodInfo.ReturnType.IsEnum || methodInfo.ReturnType.
IsValueType
) && !ServiceOperationHelpers.IsNullableType(methodInfo.ReturnType));
1410
parameter.ParameterType.GetElementType().
IsValueType
&&
System.Xml (19)
System\Xml\Serialization\CodeGenerator.cs (8)
611
if (methodInfo.IsVirtual && !methodInfo.DeclaringType.
IsValueType
)
685
return objType.
IsValueType
&& !objType.IsPrimitive;
689
if (GetVariableType(obj).
IsValueType
)
1204
if (localBuilder.LocalType.
IsValueType
)
1305
if (argBuilder.ArgType.
IsValueType
)
1683
if (target.
IsValueType
) {
1684
if (source.
IsValueType
) {
1705
if (source.
IsValueType
) {
System\Xml\Serialization\SourceInfo.cs (2)
77
if (eType.
IsValueType
) {
131
if (varType.
IsValueType
)
System\Xml\Serialization\TypeExtensions.cs (1)
21
return !targetType.
IsValueType
;
System\Xml\Serialization\Types.cs (2)
708
if (!type.
IsValueType
)
760
else if (type.
IsValueType
) {
System\Xml\Serialization\XmlSerializationReader.cs (2)
1588
if (elementType.
IsValueType
) {
1644
if (currItemType.
IsValueType
) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
2764
if (CodeGenerator.IsNullableGenericType(arrayElementType) || arrayElementType.
IsValueType
) {
2822
if (CodeGenerator.IsNullableGenericType(arrayElementType) || arrayElementType.
IsValueType
) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2121
Debug.Assert(!local.LocalType.
IsValueType
);
2300
Debug.Assert(type.
IsValueType
);
UIAutomationClient (2)
System\Windows\Automation\ItemContainerPattern.cs (1)
149
((value == null && expectedType.
IsValueType
)
System\Windows\Automation\PropertyCondition.cs (1)
149
((val == null && expectedType.
IsValueType
)
WindowsBase (4)
Base\System\Windows\DependencyProperty.cs (3)
336
if (propertyType.
IsValueType
)
1055
if (propertyType.
IsValueType
&&
1135
if (propertyType.
IsValueType
)
Base\System\Windows\EffectiveValueEntry.cs (1)
667
_baseValue = (useWeakReference && !value.GetType().
IsValueType
)
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\AttributeParameterData.cs (2)
33
if (textValue == null && type.UnderlyingType.
IsValueType
)
49
if (value == null && type.UnderlyingType.
IsValueType
)