Class AttributesExtensions
Inheritance
AttributesExtensions
Assembly: PayrollEngine.Core.dll
Syntax
public static class AttributesExtensions
Methods
GetAttributeValue<T>(IDictionary<string, object>, string, T, string)
Declaration
public static T GetAttributeValue<T>(this IDictionary<string, object> attributes, string name, T defaultValue = default, string culture = null)
Parameters
Returns
Type Parameters
GetBooleanAttributeValue(IDictionary<string, object>, string, string)
Declaration
public static bool? GetBooleanAttributeValue(this IDictionary<string, object> attributes, string name, string culture = null)
Parameters
Returns
GetDateTimeAttributeValue(IDictionary<string, object>, string, CultureInfo)
Declaration
public static DateTime? GetDateTimeAttributeValue(this IDictionary<string, object> attributes, string name, CultureInfo culture = null)
Parameters
Returns
GetDecimalAttributeValue(IDictionary<string, object>, string, string)
Declaration
public static decimal? GetDecimalAttributeValue(this IDictionary<string, object> attributes, string name, string culture = null)
Parameters
Returns
GetEnumAttributeValue<T>(Dictionary<string, object>, string, string)
Declaration
public static T? GetEnumAttributeValue<T>(this Dictionary<string, object> attributes, string name, string culture = null) where T : struct
Parameters
Returns
Type Parameters
GetIntegerAttributeValue(IDictionary<string, object>, string, string)
Declaration
public static int? GetIntegerAttributeValue(this IDictionary<string, object> attributes, string name, string culture = null)
Parameters
Returns
GetMemberAttributeValue<T>(IDictionary<string, object>, T, string, string)
Declaration
public static T GetMemberAttributeValue<T>(this IDictionary<string, object> attributes, T defaultValue = default, string culture = null, string memberName = "")
Parameters
Returns
Type Parameters
GetStringAttributeValue(IDictionary<string, object>, string, string)
Declaration
public static string GetStringAttributeValue(this IDictionary<string, object> attributes, string name, string culture = null)
Parameters
Returns
HasAttribute(IDictionary<string, object>, string, string)
Declaration
public static bool HasAttribute(this IDictionary<string, object> attributes, string name, string culture = null)
Parameters
Returns
SetAttributeValue<T>(IDictionary<string, object>, string, T, string)
Declaration
public static void SetAttributeValue<T>(this IDictionary<string, object> attributes, string name, T value, string culture = null)
Parameters
Type Parameters
SetMemberAttributeValue<T>(IDictionary<string, object>, T, string, string)
Declaration
public static void SetMemberAttributeValue<T>(this IDictionary<string, object> attributes, T value, string culture = null, string memberName = "")
Parameters
Type Parameters
TryGetAttributeValue<T>(IDictionary<string, object>, string, out T, string)
Declaration
public static bool TryGetAttributeValue<T>(this IDictionary<string, object> attributes, string name, out T value, string culture = null)
Parameters
Returns
Type Parameters