Class ISetConverter<T>
A CollectionConverter<T, TCollection> for an ISet<T>, creating a HashSet<T> when deserializing.
Implements
Inherited Members
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public class ISetConverter<T> : CollectionConverter<T, ISet<T>>, IValueConverter
Type Parameters
Name | Description |
---|---|
T | the element type of the ISet<T> |
Constructors
| Improve this Doc View SourceISetConverter()
Creates an ISetConverter<T> using the default converter for T
.
Declaration
public ISetConverter()
See Also
| Improve this Doc View SourceISetConverter(ValueConverter<T>)
Creates an ISetConverter<T> using the specified underlying converter for values.
Declaration
public ISetConverter(ValueConverter<T> underlying)
Parameters
Type | Name | Description |
---|---|---|
ValueConverter<T> | underlying | the underlying ValueConverter<T> to use for the values |
Methods
| Improve this Doc View SourceCreate(Int32, Object)
Creates a new ISet<T> (a HashSet<T>) for deserialization.
Declaration
protected override ISet<T> Create(int size, object parent)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | the size to initialize it to |
Object | parent | the object that will own the new object |
Returns
Type | Description |
---|---|
ISet<T> | the new ISet<T> |
Overrides
IPA.Config.Stores.Converters.CollectionConverter<T, System.Collections.Generic.ISet<T>>.Create(System.Int32, System.Object)
Implements
Extension Methods
See Also
CollectionConverter<T, TCollection>