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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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