コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
 /// <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 };
 }
コード例 #5
0
 /// <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 };
 }