Class ISetConverter<T>
A CollectionConverter<T, TCollection> for an System.Collections.Generic.ISet<T>, creating a System.Collections.Generic.HashSet`1 when deserializing.
Inheritance
System.Object
ValueConverter<System.Collections.Generic.ISet<T>>
CollectionConverter<T, System.Collections.Generic.ISet<T>>
ISetConverter<T>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 System.Collections.Generic.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 System.Collections.Generic.ISet<T> (a System.Collections.Generic.HashSet`1) for deserialization.
Declaration
protected override ISet<T> Create(int size, object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | the size to initialize it to |
System.Object | parent | the object that will own the new object |
Returns
Type | Description |
---|---|
System.Collections.Generic.ISet<T> | the new System.Collections.Generic.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>