Show / Hide Table of Contents

Class DataRowAttributeExtensions

Inheritance
object
DataRowAttributeExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Data
Assembly: PayrollEngine.Core.dll
Syntax
public static class DataRowAttributeExtensions

Methods

GetAttribute(DataRow, string, object)

Declaration
public static object GetAttribute(this DataRow dataRow, string attribute, object defaultValue = null)
Parameters
Type Name Description
DataRow dataRow
string attribute
object defaultValue
Returns
Type Description
object

GetAttribute(DataRow, string, string, object)

Declaration
public static object GetAttribute(this DataRow dataRow, string column, string attribute, object defaultValue = null)
Parameters
Type Name Description
DataRow dataRow
string column
string attribute
object defaultValue
Returns
Type Description
object

GetAttribute<T>(DataRow, string, string, T)

Declaration
public static T GetAttribute<T>(this DataRow dataRow, string column, string attribute, T defaultValue = default)
Parameters
Type Name Description
DataRow dataRow
string column
string attribute
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T

GetAttribute<T>(DataRow, string, T)

Declaration
public static T GetAttribute<T>(this DataRow dataRow, string attribute, T defaultValue = default)
Parameters
Type Name Description
DataRow dataRow
string attribute
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T

GetAttributes(DataRow)

Declaration
public static Dictionary<string, object> GetAttributes(this DataRow dataRow)
Parameters
Type Name Description
DataRow dataRow
Returns
Type Description
Dictionary<string, object>

GetAttributes(DataRow, string)

Declaration
public static Dictionary<string, object> GetAttributes(this DataRow dataRow, string column)
Parameters
Type Name Description
DataRow dataRow
string column
Returns
Type Description
Dictionary<string, object>
☀
☾
Back to top Generated by DocFX