Class SpecificationSource<TParameter, TResult>
A selector paired with a specification.
Inheritance
System.Object
SpecificationSource<TParameter, TResult>
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)
System.Object.ToString()
Namespace: ExtendedXmlSerializer.Core.Sources
Assembly: ExtendedXmlSerializer.dll
Syntax
public class SpecificationSource<TParameter, TResult> : ISpecificationSource<TParameter, TResult>, ISpecification<TParameter>, IParameterizedSource<TParameter, TResult>
Type Parameters
TParameter
The selector's parameter type. |
TResult
The selection result type. |
Constructors
SpecificationSource(IParameterizedSource<TParameter, TResult>)
Declaration
public SpecificationSource(IParameterizedSource<TParameter, TResult> source)
Parameters
IParameterizedSource<TParameter, TResult>
source
|
SpecificationSource(ISpecification<TParameter>, IParameterizedSource<TParameter, TResult>)
Creates a new instance.
Declaration
public SpecificationSource(ISpecification<TParameter> specification, IParameterizedSource<TParameter, TResult> source)
Parameters
ISpecification<TParameter>
specification
|
IParameterizedSource<TParameter, TResult>
source
|
Methods
Get(TParameter)
Performs the selection.
Declaration
public TResult Get(TParameter parameter)
Parameters
TParameter
parameter
The parameter to accept. |
Returns
TResult
A value of the return type. |
Implements
IsSatisfiedBy(TParameter)
Returns a boolean based on the provided parameter.
Declaration
public bool IsSatisfiedBy(TParameter parameter)
Parameters
TParameter
parameter
|
Returns
System.Boolean
The condition based on the provided parameter. |