/// <inheritdoc/> public ItemContainerInfo Materialize(int index, object item) { var container = new ItemContainerInfo(CreateContainer(item), item, index); _containers.Add(container.Index, container); Materialized?.Invoke(this, new ItemContainerEventArgs(container)); return(container); }
/// <inheritdoc/> public ItemContainerInfo Materialize( int index, object item, IMemberSelector selector) { var i = selector != null ? selector.Select(item) : item; var container = new ItemContainerInfo(CreateContainer(i), item, index); _containers.Add(container.Index, container); Materialized?.Invoke(this, new ItemContainerEventArgs(container)); return container; }
/// <inheritdoc/> public ItemContainerInfo Materialize( int index, object item, IMemberSelector selector) { var i = selector != null?selector.Select(item) : item; var container = new ItemContainerInfo(CreateContainer(i), item, index); _containers.Add(container.Index, container); Materialized?.Invoke(this, new ItemContainerEventArgs(container)); return(container); }
/// <summary> /// Initializes a new instance of the <see cref="ItemContainerEventArgs"/> class. /// </summary> /// <param name="container">The container.</param> public ItemContainerEventArgs(ItemContainerInfo container) { StartingIndex = container.Index; Containers = new[] { container }; }