HypernovaDesktop Components · docs
Binarymission
WinFormsCommon Utils › Shared

Shared

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.CommonUtils

Reflection helpers shared by the Binarymission Windows Forms controls.

public static class Shared

Members at a glance

BuildDataFromStaticTypeReads every static property declared on a type and returns their current values, keyed by property name.

Methods

BuildDataFromStaticType

public static Dictionary<string, object> BuildDataFromStaticType(Type type)

Reads every static property declared on a type and returns their current values, keyed by property name.

type
The type whose static properties are to be read.

Returns. A map of property name to current value. Non-public properties are included, because the controls use this to snapshot internal palette and metric classes whose members are deliberately not part of the public surface.

ArgumentNullException
type is null .