Show / Hide Table of Contents

Class AttributeObjectExtensions

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

Methods

ContainsAttribute(IAttributeObject, string)

Declaration
public static bool ContainsAttribute(this IAttributeObject attributeObject, string key)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
Returns
Type Description
bool

GetAttribute(IAttributeObject, string, object)

Declaration
public static object GetAttribute(this IAttributeObject attributeObject, string key, object defaultValue = null)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
object defaultValue
Returns
Type Description
object

GetAttributeGuid(IAttributeObject, string)

Declaration
public static Guid GetAttributeGuid(this IAttributeObject attributeObject, string key)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
Returns
Type Description
Guid

GetAttribute<T>(IAttributeObject, string, T)

Declaration
public static T GetAttribute<T>(this IAttributeObject attributeObject, string key, T defaultValue = default)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T

RemoveAttribute(IAttributeObject, string)

Declaration
public static void RemoveAttribute(this IAttributeObject attributeObject, string key)
Parameters
Type Name Description
IAttributeObject attributeObject
string key

SetAttribute(IAttributeObject, string, object)

Declaration
public static void SetAttribute(this IAttributeObject attributeObject, string key, object value)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
object value

SetAttributeGuid(IAttributeObject, string, Guid)

Declaration
public static void SetAttributeGuid(this IAttributeObject attributeObject, string key, Guid value)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
Guid value

SetAttribute<T>(IAttributeObject, string, T)

Declaration
public static void SetAttribute<T>(this IAttributeObject attributeObject, string key, T value)
Parameters
Type Name Description
IAttributeObject attributeObject
string key
T value
Type Parameters
Name Description
T
☀
☾
Back to top Generated by DocFX