Class KeySerializableAttribute
- Namespace
- ChartTools.IO
- Assembly
- ChartTools.dll
public abstract class KeySerializableAttribute : Attribute
- Inheritance
-
KeySerializableAttribute
- Derived
- Inherited Members
- Extension Methods
Constructors
KeySerializableAttribute(string)
protected KeySerializableAttribute(string key)
Parameters
key
string
Properties
Format
public abstract FileType Format { get; }
Property Value
Key
public string Key { get; }
Property Value
Methods
GetSerializable<TAttribute>(object)
Generates groups of non-null property values and their serialization keys.
protected static IEnumerable<(string key, string value)> GetSerializable<TAttribute>(object source) where TAttribute : KeySerializableAttribute
Parameters
source
objectObject containing the properties
Returns
- IEnumerable<(string key, string value)>
Type Parameters
TAttribute
GetValueString(object)
protected abstract string GetValueString(object propValue)
Parameters
propValue
object