Class DynamicClass
Provides a base class for dynamic objects for Net 3.5
Inheritance
System.Object
DynamicClass
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 |
---|---|---|
System.String | propertyName | Name of the property. |
Returns
Type | Description |
---|---|
System.Object | value |
GetDynamicPropertyValue<T>(String)
Gets the dynamic property by name.
Declaration
public T GetDynamicPropertyValue<T>(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.String | propertyName | Name of the property. |
System.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 |
---|---|---|
System.String | propertyName | Name of the property. |
T | value | The value. |
Type Parameters
Name | Description |
---|---|
T | The type. |