Show / Hide Table of Contents

Class IListExtensions

IList<T> extension methods.

Inheritance
object
IListExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.GNS.Roster.Extensions
Assembly: Microsoft.XboxStudios.SQTech.Roster.Common.dll
Syntax
public static class IListExtensions

Methods

View Source

AddRange<T>(IList<T>, IEnumerable<T>)

Adds a IEnumerable values to a IList<T>.

Declaration
public static void AddRange<T>(this IList<T> source, IEnumerable<T> items)
Parameters
Type Name Description
IList<T> source

The source list.

IEnumerable<T> items

The items to add.

Type Parameters
Name Description
T

The list type.

View Source

Set<T>(IList<T>, IEnumerable<T>)

Sets a list to a new list of items.

Declaration
public static void Set<T>(this IList<T> list, IEnumerable<T> newItems)
Parameters
Type Name Description
IList<T> list

The original list.

IEnumerable<T> newItems

The new items for the list.

Type Parameters
Name Description
T

The list type.

  • View Source
In this article
Back to top Generated by DocFX