Show / Hide Table of Contents

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.

Implements
IParameterizedSource<TParameter, TResult>.Get(TParameter)

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForCoreSources.To<TParameter, TResult, TTo>(IParameterizedSource<TParameter, TResult>, IParameterizedSource<TResult, TTo>)
ExtensionMethodsForCoreSources.In<TFrom, TTo, TResult>(IParameterizedSource<TTo, TResult>, IParameterizedSource<TFrom, TTo>)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, ISpecification<TResult>, IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, TResult)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)
ExtensionMethodsForCoreSources.Build<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSources.FixedSelection<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSources.ToSelectionDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.ToDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Fix<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSpecifications.IfAssigned<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
Back to top Generated by DocFX