Class ExpressionMemberSelectionRule
Expression based member selection rule.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:Extend
Assembly:Extend.dll
Syntax
public class ExpressionMemberSelectionRule : MemberSelectionRuleBase, IMemberSelectionRule
Constructors
| Improve this Doc View SourceExpressionMemberSelectionRule(Func<IMemberInformation, Boolean>, MemberSelectionMode, String, String)
Initializes a new instance of the ExpressionMemberSelectionRule class.
Declaration
public ExpressionMemberSelectionRule(Func<IMemberInformation, bool> predicate, MemberSelectionMode selectionMode, string name = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult><IMemberInformation, System.Boolean> | predicate | The predicate used to determine if a member matches the rule. |
MemberSelectionMode | selectionMode | The selection mode to apply. |
System.String | name | The name of the rule. |
System.String | description | The description of the rule. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | predicate can not be null. |
Methods
| Improve this Doc View SourceGetSelectionResult(IMemberInformation)
Gets the selection result for the given member.
Declaration
public override MemberSelectionResult GetSelectionResult(IMemberInformation member)
Parameters
Type | Name | Description |
---|---|---|
IMemberInformation | member | The member to get the selection result for. |
Returns
Type | Description |
---|---|
MemberSelectionResult | Returns the selection result for the given member. |
Overrides
| Improve this Doc View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()