Show / Hide Table of Contents

Class CaseObject

Case object///

Inheritance
object
CaseObject
Implements
ICaseObject
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public abstract class CaseObject : ICaseObject

Constructors

CaseObject()

Declaration
protected CaseObject()

Methods

GetCaseFieldName(string)

Get case field name

Declaration
public string GetCaseFieldName(string propertyName)
Parameters
Type Name Description
string propertyName
Returns
Type Description
string

GetCaseFieldName<T>(string)

Get case field name

Declaration
public static string GetCaseFieldName<T>(string propertyName) where T : class, ICaseObject
Parameters
Type Name Description
string propertyName
Returns
Type Description
string
Type Parameters
Name Description
T

GetCaseFieldNames<T>(bool, bool)

Get case field names

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 Description
List<string>
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T

GetObjects<T>()

Get case objects

Declaration
public List<T> GetObjects<T>() where T : class, ICaseObject
Returns
Type Description
List<T>
Type Parameters
Name Description
T

GetProperties(Type, bool, bool)

Get object properties

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
Type Description
List<(PropertyInfo Property, string CaseFieldName)>

GetProperties<T>(bool, bool)

Get object properties

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 Description
List<(PropertyInfo Property, string CaseFieldName)>
Type Parameters
Name Description
T

GetProperty(string)

Get property by name

Declaration
protected PropertyInfo GetProperty(string propertyName)
Parameters
Type Name Description
string propertyName

Property name

Returns
Type Description
PropertyInfo

GetValue(string)

Get case object value by case field name

Declaration
public object GetValue(string caseFieldName)
Parameters
Type Name Description
string caseFieldName
Returns
Type Description
object

SetValue(string, object)

Set case object value by case field name

Declaration
public void SetValue(string caseFieldName, object value)
Parameters
Type Name Description
string caseFieldName
object value

Implements

ICaseObject

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX