25 references to Type
System.Data.Services (25)
System\Data\Services\DataService.cs (1)
1211
else if (description.Property.
Type
.IsValueType)
System\Data\Services\KeyInstance.cs (2)
154
if (!WebConvert.TryKeyStringToPrimitive(valueText, property.
Type
, out convertedValue))
169
if (!WebConvert.TryKeyStringToPrimitive(valueText, type.KeyProperties[i].
Type
, out convertedValue))
System\Data\Services\Parsing\RequestQueryParser.cs (1)
2078
propertyAccess = Expression.Convert(propertyAccess, property.
Type
);
System\Data\Services\Providers\BasicExpandProvider.cs (4)
1274
expression = Expression.Convert(expression, property.
Type
);
1294
Debug.Assert(property.
Type
.IsAssignableFrom(expression.Type), "The returned expression is not of the type of the property being accessed.");
1595
propertyAccess = Expression.Convert(propertyAccess, WebUtil.GetTypeAllowingNull(resourceProperty.
Type
));
1620
propertyAccess = Expression.Constant(null, WebUtil.GetTypeAllowingNull(projectedProperty.Property.
Type
));
System\Data\Services\RequestQueryProcessor.cs (1)
472
e = Expression.Convert(e, keyProp.
Type
);
System\Data\Services\RequestUriProcessor.cs (6)
1121
method = method.MakeGenericMethod(query.ElementType, property.
Type
);
1135
Type enumerableElement = BaseServiceProvider.GetIEnumerableElement(property.
Type
);
1181
body = Expression.Convert(body, property.
Type
);
1185
method = method.MakeGenericMethod(query.ElementType, property.
Type
);
1199
Type enumerableElement = BaseServiceProvider.GetIEnumerableElement(property.
Type
);
1245
e = Expression.Convert(e, keyProperty.
Type
);
System\Data\Services\Serializers\Deserializer.cs (5)
207
return JsonDeserializer.ConvertValues(value, property.Name, property.
Type
, provider);
211
return PlainXmlDeserializer.ConvertValuesForXml(value, property.Name, property.
Type
);
270
if (description.Property != null && description.Property.
Type
== typeof(System.Data.Linq.Binary))
291
requestValue = WebConvert.StringToPrimitive((string)propertyValue, description.Property.
Type
);
295
throw DataServiceException.CreateBadRequestError(Strings.BadRequest_ErrorInConvertingPropertyValue(description.Property.Name, description.Property.
Type
), e);
System\Data\Services\Serializers\MetadataSerializer.cs (2)
562
if (resourceProperty.IsOfKind(ResourcePropertyKind.Key) || (resourceProperty.
Type
.IsValueType && Nullable.GetUnderlyingType(resourceProperty.
Type
) == null))
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
803
if (property.
Type
.IsValueType)
805
generator.Emit(OpCodes.Box, property.
Type
);
System\Data\Services\UpdatableWrapper.cs (1)
402
success = System.Data.Services.Parsing.WebConvert.TryKeyStringToPrimitive(value, etagProperty.
Type
, out propertyValue);