Class DynamicClass
Provides a base class for dynamic objects for Net 3.5
Inherited Members
Namespace: System.Linq.Dynamic.Core
Assembly: System.Linq.Dynamic.Core.dll
Syntax
public abstract class DynamicClass
Methods
| Improve this Doc View SourceGetDynamicPropertyValue(String)
Gets the dynamic property value by name.
Declaration
public object GetDynamicPropertyValue(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | Name of the property. |
Returns
| Type | Description |
|---|---|
| Object | value |
GetDynamicPropertyValue<T>(String)
Gets the dynamic property by name.
Declaration
public T GetDynamicPropertyValue<T>(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | Name of the property. |
Returns
| Type | Description |
|---|---|
| T | T |
Type Parameters
| Name | Description |
|---|---|
| T | The type. |
SetDynamicPropertyValue(String, Object)
Sets the dynamic property value by name.
Declaration
public void SetDynamicPropertyValue(string propertyName, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | Name of the property. |
| Object | value | The value. |
SetDynamicPropertyValue<T>(String, T)
Sets the dynamic property value by name.
Declaration
public void SetDynamicPropertyValue<T>(string propertyName, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | Name of the property. |
| T | value | The value. |
Type Parameters
| Name | Description |
|---|---|
| T | The type. |