Class Equatable
A set of utilities uses for easily wrapping .NET
collections so they can be used with
Do note this has a side-effect that any custom
Inheritance
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public static class Equatable : object
Methods
| Improve this Doc View SourceWrap<T>(IList<T>)
Wraps any
Note that if the list is already an EquatableList<T> or a subclass
of it, this method simply returns the provided list.
Declaration
public static IList<T> Wrap<T>(IList<T> list)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<T> | list | Any |
Returns
| Type | Description |
|---|---|
| IList<T> | An EquatableList<T> that wraps the provided |
Type Parameters
| Name | Description |
|---|---|
| T | the type of element |
Wrap<T>(ISet<T>)
Wraps any
Note that if the set is already an EquatableSet<T> or a subclass
of it, this method simply returns the provided set.
Declaration
public static ISet<T> Wrap<T>(ISet<T> set)
Parameters
| Type | Name | Description |
|---|---|---|
| ISet<T> | set | Any |
Returns
| Type | Description |
|---|---|
| ISet<T> | An EquatableSet<T> that wraps the provided |
Type Parameters
| Name | Description |
|---|---|
| T | the type of element |