Show / Hide Table of Contents

Class KeyedCollectionConverter<T, T1, T2>

Serialize a class derived from KeyedCollection as a list.

Inheritance
Object
FullSerializer.fsBaseConverter
FullSerializer.fsDirectConverter
KeyedCollectionConverter<T, T1, T2>
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class KeyedCollectionConverter<T, T1, T2> : fsDirectConverter where T : KeyedCollection<T1, T2>, new()
Type Parameters
Name Description
T
T1
T2
Remarks

A custom converter for KeyedCollection to avoid issue where "get_Item"/"set_Item" is expected to have int indexer. See issue https://github.com/jacobdufault/fullserializer/issues/131.

Properties

| Improve this Doc View Source

ModelType

Declaration
public override Type ModelType { get; }
Property Value
Type Description
Type
Overrides
FullSerializer.fsDirectConverter.ModelType

Methods

| Improve this Doc View Source

CreateInstance(fsData, Type)

Declaration
public override object CreateInstance(fsData data, Type storageType)
Parameters
Type Name Description
FullSerializer.fsData data
Type storageType
Returns
Type Description
Object
Overrides
FullSerializer.fsBaseConverter.CreateInstance(FullSerializer.fsData, System.Type)
| Improve this Doc View Source

TryDeserialize(fsData, ref Object, Type)

Declaration
public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType)
Parameters
Type Name Description
FullSerializer.fsData data
Object instance
Type storageType
Returns
Type Description
FullSerializer.fsResult
Overrides
FullSerializer.fsBaseConverter.TryDeserialize(FullSerializer.fsData, System.Object, System.Type)
| Improve this Doc View Source

TrySerialize(Object, out fsData, Type)

Declaration
public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType)
Parameters
Type Name Description
Object instance
FullSerializer.fsData serialized
Type storageType
Returns
Type Description
FullSerializer.fsResult
Overrides
FullSerializer.fsBaseConverter.TrySerialize(System.Object, FullSerializer.fsData, System.Type)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX