12 references to IsPrimitiveType
System.Data.Services (12)
System\Data\Services\Providers\BaseServiceProvider.cs (2)
251
return type == typeof(object) || WebUtil.
IsPrimitiveType
(type);
741
if (WebUtil.
IsPrimitiveType
(method.ReturnType))
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
960
Debug.Assert(!WebUtil.
IsPrimitiveType
(type), "Why are we trying to load metadata for a primitive type?");
1223
WebUtil.
IsPrimitiveType
(((PrimitiveType)type).ClrEquivalentType),
1430
Debug.Assert(!WebUtil.
IsPrimitiveType
(propertyClrType), "We don't support collections of primitives, we shouldn't see one here");
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
200
if (WebUtil.
IsPrimitiveType
(property.PropertyType) &&
System\Data\Services\Providers\ResourceType.cs (1)
161
Debug.Assert(WebUtil.
IsPrimitiveType
(type), "This constructor should be called only for primitive types");
System\Data\Services\Serializers\Deserializer.cs (1)
1099
if (requestValue == null || WebUtil.
IsPrimitiveType
(requestValue.GetType()))
System\Data\Services\Serializers\JsonDeserializer.cs (3)
345
(segmentInfo.TargetKind == RequestTargetKind.OpenProperty && WebUtil.
IsPrimitiveType
(nonEntityResource.GetType())))
355
(segmentInfo.TargetKind == RequestTargetKind.OpenProperty && WebUtil.
IsPrimitiveType
(jsonObject.GetType())) ||
640
if (propertyValue == null || WebUtil.
IsPrimitiveType
(propertyValue.GetType()))
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
115
Debug.Assert(WebUtil.
IsPrimitiveType
(typeToBeConverted), "WebUtil.IsPrimitiveType(typeToBeConverted)");