Class CaseObject
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public abstract class CaseObject : ICaseObject
Constructors
CaseObject()
Declaration
Methods
GetCaseFieldName(string)
Declaration
public string GetCaseFieldName(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Returns
GetCaseFieldName<T>(string)
Declaration
public static string GetCaseFieldName<T>(string propertyName) where T : class, ICaseObject
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Returns
Type Parameters
GetCaseFieldNames<T>(bool, bool)
Declaration
public static List<string> GetCaseFieldNames<T>(bool recursive = true, bool writeable = false) where T : class, ICaseObject
Parameters
| Type |
Name |
Description |
| bool |
recursive |
Recursive objects (default: true)
|
| bool |
writeable |
Writeable properties only
|
Returns
Type Parameters
GetObject<T>(string)
Get case object by property name
Declaration
public T GetObject<T>(string propertyName) where T : class, ICaseObject
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Returns
Type Parameters
GetObjects<T>()
Declaration
public List<T> GetObjects<T>() where T : class, ICaseObject
Returns
Type Parameters
GetProperties(Type, bool, bool)
Declaration
public static List<(PropertyInfo Property, string CaseFieldName)> GetProperties(Type type, bool recursive = true, bool writeable = false)
Parameters
| Type |
Name |
Description |
| Type |
type |
Object type
|
| bool |
recursive |
Recursive objects (default: true)
|
| bool |
writeable |
Writeable properties only
|
Returns
GetProperties<T>(bool, bool)
Declaration
public static List<(PropertyInfo Property, string CaseFieldName)> GetProperties<T>(bool recursive = true, bool writeable = false) where T : class, ICaseObject
Parameters
| Type |
Name |
Description |
| bool |
recursive |
Recursive objects (default: true)
|
| bool |
writeable |
Writeable properties only
|
Returns
Type Parameters
GetProperty(string)
Declaration
protected PropertyInfo GetProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
Property name
|
Returns
GetValue(string)
Get case object value by case field name
Declaration
public object GetValue(string caseFieldName)
Parameters
| Type |
Name |
Description |
| string |
caseFieldName |
|
Returns
SetValue(string, object)
Set case object value by case field name
Declaration
public void SetValue(string caseFieldName, object value)
Parameters
Implements
Extension Methods