Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Models.ObjectSupport.TryGetPropertyValue Method

Retrieve a property value.

Class: YetaWF.Core.Models.ObjectSupport
Namespace: YetaWF.Core.Models
Assembly: YetaWF.Core

Syntax

public static bool TryGetPropertyValue<TYPE>(
    object parentObject,
    string name,
    out TYPE?? val,
    TYPE? dflt = null );

Parameters

parentObject

The parent model containing the property.

name

The name of the property.

val

(not specified)

dflt

The default value returned if the property does not exist.

Return Value

The property value. The default value is returned if the property does not exist.

See Also YetaWF.Core.Models.ObjectSupport ClassYetaWF.Core Overview