Click or drag to resize
PredicateAdapterAdapteeType, TargetType Class
Generic adapter that allows one predicate to be used as another.
Inheritance Hierarchy
SystemObject
  Sdl.FileTypeSupport.Framework.Core.UtilitiesPredicateAdapterAdapteeType, TargetType

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public class PredicateAdapter<AdapteeType, TargetType>
where AdapteeType : class

Type Parameters

AdapteeType
The generic argument type of the implementation predicate
TargetType
The generic argument type of the desired predicate

The PredicateAdapterAdapteeType, TargetType type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAdaptee
The predicate used for the evaluation.
Public propertyTarget
The implementation of the desired predicate.
Top
Methods
  NameDescription
Public methodEvaluate
Implementation of the adapter. Attempts to cast the argument from the AdapteeType into the TargetType and if successful, evaluates the implementation predicate for it. If the cast is unsuccessful, the method returns false.
Top
Remarks
To use the adapter, construct it from the implementation predicate and pass the value of the Target property to the method that requires a predicate of the Into type.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments