Table of Contents

Method CreateProps

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CreateProps(object, bool)

Creates IPropertyGridItem array from all public properties of the specified object.

IEnumerable<IPropertyGridItem> CreateProps(object instance, bool sort = false)

Parameters

instance object

Object instance which properties will be added.

sort bool

Optional. Equals false by default. If true, properties will be sorted ascending dy name.

Returns

IEnumerable<IPropertyGridItem>