Cascade
Loading...
Searching...
No Matches
Buzzware.Cascade.ClassInfo Class Reference

Public Member Functions

 ClassInfo (Type aType)
 ClassInfo Constructor.
CascadePropertyInfoGetPropertyInfo (string name)
 Tries to get a specific property's CascadePropertyInfo by its name.
object? GetValue (object aInstance, string aName)
 Retrieves the value of a specified property from an instance.
void SetValue (object aInstance, string aName, object? aValue)
 Sets a value for a specified property in a given object instance.

Properties

ImmutableDictionary< string, CascadePropertyInfoAllPropertyInfos [get]
ImmutableDictionary< string, CascadePropertyInfoDataAndIdPropertyInfos [get]
ImmutableArray< string > DataAndIdNames [get]
ImmutableDictionary< string, CascadePropertyInfoAssociationinfos [get]
ImmutableDictionary< string, CascadePropertyInfoDataAndAssociationInfos [get]
CascadePropertyInfoIdProperty [get]
Type Type [get]

Constructor & Destructor Documentation

◆ ClassInfo()

Buzzware.Cascade.ClassInfo.ClassInfo ( Type aType)
inline

ClassInfo Constructor.

Parameters
aTypeThe class/type to extract metadata and properties for.

Member Function Documentation

◆ GetPropertyInfo()

CascadePropertyInfo? Buzzware.Cascade.ClassInfo.GetPropertyInfo ( string name)
inline

Tries to get a specific property's CascadePropertyInfo by its name.

Parameters
nameThe name of the property to retrieve information for.
Returns
A CascadePropertyInfo object if the property exists; otherwise, null.

◆ GetValue()

object? Buzzware.Cascade.ClassInfo.GetValue ( object aInstance,
string aName )
inline

Retrieves the value of a specified property from an instance.

Parameters
aInstanceThe object instance to get the property value from.
aNameThe name of the property to retrieve.
Returns
The value of the specified property or null if the property does not exist.

◆ SetValue()

void Buzzware.Cascade.ClassInfo.SetValue ( object aInstance,
string aName,
object? aValue )
inline

Sets a value for a specified property in a given object instance.

Parameters
aInstanceThe object in which to set the property value.
aNameThe name of the property to set.
aValueThe value to assign to the property.

The documentation for this class was generated from the following file:
  • Buzzware.Cascade/FastReflection.cs