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