2 writes to instance
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
44this.instance = instance; 640this.instance = instance;
26 references to instance
System.Data (26)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (26)
78Fx.Assert(this.instance != null, "instance cannot be null"); 79ContentPropertyAttribute contentAttribute = TypeDescriptor.GetAttributes(this.instance)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute; 93Fx.Assert(instance != null, "instance cannot be null"); 94if (instance != null) 96return ((ICollection)instance).Count; 106IList instanceList = instance as IList; 231Fx.Assert(this.instance != null, "instance cannot be null"); 232RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.GetAttributes(this.instance)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute; 342return ((IList)instance).Contains(value); 366return this.instance; 510Fx.Assert(instance is IList, "instance should be IList"); 511Fx.Assert(instance != null, "instance should not be null"); 513IList instanceList = (IList)instance; 536Fx.Assert(instance is IList, " Instance needs to be Ilist for clear to work"); 537Fx.Assert(instance != null, "Instance should not be null"); 539IList instanceList = (IList)instance; 562Fx.Assert(instance is IList, "instance needs to be IList"); 563Fx.Assert(instance != null, "instance should not be null"); 564IList instanceList = (IList)instance; 589Fx.Assert(instance is IList, "Instance needs to be IList for remove to work"); 590Fx.Assert(instance != null, "instance should not be null"); 592IList instanceList = (IList)instance; 615Fx.Assert(instance is IList, "Instance needs to be IList for remove to work"); 616Fx.Assert(instance != null, "instance should not be null"); 618IList instanceList = (IList)instance; 641IEnumerable instanceCollection = this.instance as IEnumerable;