36 references to ClientConvert
System.Data.Services.Client (36)
parent\Server\System\Data\Services\Epm\EpmCustomContentWriterNodeData.cs (1)
213
this.Data = propertyValue == null ? String.Empty :
ClientConvert
.ToString(propertyValue, false /* atomDateConstruct */);
parent\Server\System\Data\Services\Parsing\WebConvert.cs (2)
683
else if (
ClientConvert
.IsBinaryValue(value))
685
return
ClientConvert
.TryKeyBinaryToString(value, out result);
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (2)
173
if (!
ClientConvert
.IsKnownNullableType(visited.Operand.Type) && !
ClientConvert
.IsKnownNullableType(visited.Type) || visited.Operand.Type == visited.Type)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (4)
296
else if (!
ClientConvert
.TryKeyPrimitiveToString(c.Value, out result))
487
if (
ClientConvert
.IsKnownType(type))
489
if (
ClientConvert
.IsSupportedPrimitiveTypeForUri(type))
491
return
ClientConvert
.ToTypeName(type);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (3)
360
if (
ClientConvert
.IsKnownType(sourceType) &&
ClientConvert
.IsKnownType(targetType))
629
if (
ClientConvert
.IsKnownNullableType(m.Expression.Type))
System\Data\Services\Client\AtomMaterializer.cs (6)
990
if (
ClientConvert
.IsKnownType(underlyingExpectedType))
996
this.currentValue =
ClientConvert
.ChangeType(elementText, underlyingExpectedType);
1211
bool knownType =
ClientConvert
.IsKnownType(underlyingType);
1216
knownType =
ClientConvert
.IsKnownType(nestedElementType.ElementType);
1236
value =
ClientConvert
.ChangeType(propertyValueText, (null != nestedElementType ? nestedElementType.ElementType : underlyingType));
1316
ClientConvert
.IsKnownType(MaterializeAtom.GetEntryClientType(property.TypeName, context, prop.PropertyType, true).ElementType))
System\Data\Services\Client\ClientConvert.cs (4)
264
return String.IsNullOrEmpty(typeName) ||
ClientConvert
.namedTypesMap.TryGetValue(typeName, out type);
273
foreach (var pair in
ClientConvert
.namedTypesMap)
521
int index = Util.IndexOfReference(
ClientConvert
.knownTypes, type);
541
ClientConvert
.knownTypes[(int)StorageType.Binary] = type;
System\Data\Services\Client\ClientType.cs (3)
89
if (!
ClientConvert
.IsKnownType(this.ElementType))
170
if (!
ClientConvert
.IsKnownType(ptype))
894
this.IsKnownType =
ClientConvert
.IsKnownType(propertyType);
System\Data\Services\Client\DataServiceContext.cs (6)
2160
if (!
ClientConvert
.ToNamedType(wireName, out payloadType))
2345
if (!
ClientConvert
.TryKeyPrimitiveToString(value, out converted))
2478
string typename =
ClientConvert
.GetEdmType(property.PropertyType);
2495
string convertedValue =
ClientConvert
.ToString(propertyValue, false /* atomDateConstruct */);
4004
ClientConvert
.ChangeType(reader.ReadToEnd(), property.PropertyType);
4682
buffer = encoding.GetBytes(
ClientConvert
.ToString(value, false /* atomDateConstruct */));
System\Data\Services\Client\DataServiceRequestOfT.cs (1)
43
elementType =
ClientConvert
.IsKnownType(elementType) ? elementType : TypeSystem.GetElementType(elementType);
System\Data\Services\Client\Epm\EpmSyndicationContentSerializer.cs (2)
115
propertyValue != null ?
ClientConvert
.ToString(propertyValue, atomDateConstruct) :
116
atomDateConstruct ?
ClientConvert
.ToString(DateTime.MinValue, atomDateConstruct) :
System\Data\Services\Client\MaterializeFromAtom.cs (1)
112
this.expectingSingleValue =
ClientConvert
.IsKnownNullableType(elementType);
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
199
if (
ClientConvert
.IsKnownNullableType(baseSourceExpression.Type))