Class ConditionalSource<TParameter, TResult>
Inheritance
System.Object
ConditionalSource<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 ConditionalSource<TParameter, TResult> : IParameterizedSource<TParameter, TResult>
Type Parameters
TParameter
|
TResult
|
Constructors
ConditionalSource(ISpecification<TParameter>, IParameterizedSource<TParameter, TResult>, IParameterizedSource<TParameter, TResult>)
Declaration
public ConditionalSource(ISpecification<TParameter> specification, IParameterizedSource<TParameter, TResult> source, IParameterizedSource<TParameter, TResult> fallback)
Parameters
ISpecification<TParameter>
specification
|
IParameterizedSource<TParameter, TResult>
source
|
IParameterizedSource<TParameter, TResult>
fallback
|
ConditionalSource(ISpecification<TParameter>, ISpecification<TResult>, IParameterizedSource<TParameter, TResult>, IParameterizedSource<TParameter, TResult>)
Declaration
public ConditionalSource(ISpecification<TParameter> specification, ISpecification<TResult> result, IParameterizedSource<TParameter, TResult> source, IParameterizedSource<TParameter, TResult> fallback)
Parameters
ISpecification<TParameter>
specification
|
ISpecification<TResult>
result
|
IParameterizedSource<TParameter, TResult>
source
|
IParameterizedSource<TParameter, TResult>
fallback
|
ConditionalSource(Func<TParameter, Boolean>, Func<TResult, Boolean>, Func<TParameter, TResult>)
Declaration
public ConditionalSource(Func<TParameter, bool> specification, Func<TResult, bool> result, Func<TParameter, TResult> source)
Parameters
System.Func<TParameter, System.Boolean>
specification
|
System.Func<TResult, System.Boolean>
result
|
System.Func<TParameter, TResult>
source
|
ConditionalSource(Func<TParameter, Boolean>, Func<TResult, Boolean>, Func<TParameter, TResult>, Func<TParameter, TResult>)
Declaration
public ConditionalSource(Func<TParameter, bool> specification, Func<TResult, bool> result, Func<TParameter, TResult> source, Func<TParameter, TResult> fallback)
Parameters
System.Func<TParameter, System.Boolean>
specification
|
System.Func<TResult, System.Boolean>
result
|
System.Func<TParameter, TResult>
source
|
System.Func<TParameter, TResult>
fallback
|
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. |