Method AddAttribute
AddAttribute<T>(T, FunctionAttributeIndex, AttributeValue)
Adds a single AttributeValue to an IFunctionAttributeAccessor
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeValue attrib) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTContainer to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attribute to
attribAttributeValueAttribute to add to the container
Returns
- T
selffor fluent use
Type Parameters
TContainer type
AddAttribute<T>(T, FunctionAttributeIndex, LazyEncodedString)
Adds a single AttributeValue to an IFunctionAttributeAccessor
public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, LazyEncodedString name) where T : notnull, IFunctionAttributeAccessor
Parameters
selfTAccessor to add the attribute to
indexFunctionAttributeIndexFunctionAttributeIndex to add the attribute to
nameLazyEncodedStringName of the attribute to add
Returns
- T
selffor fluent use
Type Parameters
TAccessor type