4 writes to CollectionType
System.Data.Services.Client (4)
System\Data\Services\Client\ClientType.cs (4)
897
this.setMethod = GetCollectionMethod(this.PropertyType, typeof(IDictionary<,>), "set_Item", out this.
CollectionType
);
900
this.containsMethod = GetCollectionMethod(this.PropertyType, typeof(ICollection<>), "Contains", out this.
CollectionType
);
901
this.addMethod = GetAddToCollectionMethod(this.PropertyType, out this.
CollectionType
);
902
this.removeMethod = GetRemoveFromCollectionMethod(this.PropertyType, out this.
CollectionType
);
35 references to CollectionType
System.Data.Services.Client (35)
System\Data\Services\Client\AtomMaterializer.cs (13)
588
object projected = selector(materializer, paramEntry, property.
CollectionType
/* perhaps nested? */);
593
plan.LastSegmentType = property.
CollectionType
;
667
bool isEntity = property.
CollectionType
== null || !ClientType.CheckElementTypeIsEntity(property.
CollectionType
);
922
if (atomProperty.Feed != null && property.
CollectionType
== null)
927
if (atomProperty.Entry != null && property.
CollectionType
!= null)
1141
Debug.Assert(property.
CollectionType
!= null, "property.CollectionType != null -- otherwise property isn't a collection");
1153
collectionType = typeof(System.Collections.ObjectModel.Collection<>).MakeGenericType(property.
CollectionType
);
1283
if (!materialized && property.
CollectionType
!= null)
1778
ClientType collectionType = ClientType.Create(property.
CollectionType
);
1784
ProjectionPlan continuationPlan = includeLinks ? CreatePlanForDirectMaterialization(property.
CollectionType
) : CreatePlanForShallowMaterialization(property.
CollectionType
);
1809
ClientType collectionType = ClientType.Create(property.
CollectionType
);
System\Data\Services\Client\Binding\BindingEntityInfo.cs (1)
290
if (p.
CollectionType
!= null)
System\Data\Services\Client\Binding\BindingObserver.cs (1)
206
.MakeGenericMethod(bpi.PropertyInfo.
CollectionType
)
System\Data\Services\Client\ClientType.cs (3)
977
Debug.Assert((null == value) || this.
CollectionType
.IsAssignableFrom(value.GetType()), "unexpected collection value to add");
1022
Debug.Assert((null == value) || this.
CollectionType
.IsAssignableFrom(value.GetType()), "unexpected dictionary value to set");
1031
Debug.Assert((null == value) || this.
CollectionType
.IsAssignableFrom(value.GetType()), "unexpected collection value to add");
System\Data\Services\Client\DataServiceContext.cs (17)
1430
if (property.IsKnownType || property.
CollectionType
== null)
1440
ClientType propertyElementType = ClientType.Create(property.
CollectionType
);
1814
bool collectionProperty = (null != ClientType.Create(source.GetType()).GetProperty(sourceProperty, false).
CollectionType
);
2391
bool collection = (null != ClientType.Create(link.Source.GetType()).GetProperty(link.SourceProperty, false).
CollectionType
);
2703
bool collection = (null != ClientType.Create(binding.Source.GetType()).GetProperty(binding.SourceProperty, false).
CollectionType
);
3049
if (null != clientType.GetProperty(end.SourceProperty, false).
CollectionType
)
3271
relativeUri = Util.CreateUri(propertyName + (null != property.
CollectionType
? "()" : String.Empty), UriKind.Relative);
3337
else if (null == property.
CollectionType
)
3494
if ((EntityStates.Unchanged == state) && (null == target) && (null != property.
CollectionType
))
3499
if (((EntityStates.Added == state) || (EntityStates.Deleted == state)) && (null == property.
CollectionType
))
3503
else if ((EntityStates.Modified == state) && (null != property.
CollectionType
))
3510
type = ClientType.Create(property.
CollectionType
?? property.PropertyType);
3741
Type elementType = property.
CollectionType
?? property.NullablePropertyType;
3851
nestedType = property.
CollectionType
?? property.NullablePropertyType;
3860
if (null != property.
CollectionType
)
3884
Type elementType = property.
CollectionType
?? property.NullablePropertyType;
3971
Type elementType = property.
CollectionType
?? property.NullablePropertyType;