AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

BusinessObject<(Of <(<'T>)>)>..::..GetDerivedObject Property

Gets the current instance cast to the derived type T.

Namespace:  AdvantageCMS.Core.Admin.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


[JsonIgnoreAttribute]
[JsonSchemaIgnoreAttribute]
public T GetDerivedObject { get; }

Field Value

This object cast as T.

Examples


C#
// Access the strongly-typed derived object from a base reference
BusinessObject<AgentConfig> baseRef = GetBusinessObject();
AgentConfig typed = baseRef.GetDerivedObject;
string name = typed.Name;