Table of Contents

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

FileType

Key

public string Key { get; }

Property Value

string

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 object

Object containing the properties

Returns

IEnumerable<(string key, string value)>

Type Parameters

TAttribute

GetValueString(object)

protected abstract string GetValueString(object propValue)

Parameters

propValue object

Returns

string