Skip to content

New List method List<T>.Contains(List<T>) #143

@neogeek

Description

@neogeek
public static bool Contains<T>(IEnumerable<T> list1, IEnumerable<T> list2)
{

    return new HashSet<T>(list2).IsSubsetOf(new HashSet<T>(list1));

}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions