Class GroupKeyMethodAttribute
Sets the static method that decides grouping for one constructor or factory. The method receives the stored key followed by values from the current row. It returns whether the group stays open and the next key.
[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method, AllowMultiple = false)]
public sealed class GroupKeyMethodAttribute : Attribute, IGroupingRuleMaker
- Inheritance
-
GroupKeyMethodAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
GroupKeyMethodAttribute(string)
Sets the static method that decides grouping for one constructor or factory. The method receives the stored key followed by values from the current row. It returns whether the group stays open and the next key.
public GroupKeyMethodAttribute(string method)
Parameters
methodstring
Properties
Method
The name of the static boundary method on the construction's declaring type.
public string Method { get; }
Property Value
Methods
Composes(ICustomAttributeProvider)
A named boundary method is the only group key on its construction.
public bool Composes(ICustomAttributeProvider carrier)
Parameters
carrierICustomAttributeProvider
Returns
MakeRule(IReadOnlyList<ICustomAttributeProvider>)
Creates a rule from the declarations found on one type or construction.
public IGroupingRule MakeRule(IReadOnlyList<ICustomAttributeProvider> carriers)
Parameters
carriersIReadOnlyList<ICustomAttributeProvider>