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