Table of Contents

Method ToDictionary

Namespace
DisCatSharp.Common.Utilities
Assembly
DisCatSharp.Common.dll

ToDictionary<T>(T)

Converts a given object into a dictionary of property name to property value mappings.

public static IReadOnlyDictionary<string, object?> ToDictionary<T>(this T obj)

Parameters

obj T

Object to convert.

Returns

IReadOnlyDictionary<string, object>

Converted dictionary.

Type Parameters

T

Type of object to convert.