Show / Hide Table of Contents

Interface IFactoryOptionsInconsistent<T>

Interface representing a not configured factory.

Namespace:Extend
Assembly:Extend.dll
Syntax
public interface IFactoryOptionsInconsistent<T>
    where T : class
Type Parameters
Name Description
T The type of the object to create.
Remarks

Some selection rules must be defined before the factory is valid.

Methods

| Improve this Doc View Source

For(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>>)

Factory will be used to create values for members matching the specified options.

Declaration
IFactoryOptionsConstistent<T> For(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>> configurationFunc)
Parameters
Type Name Description
System.Func<T, TResult><IIncludeExcludeOptions<T><T>, IIncludeExcludeOptions<T><T>> configurationFunc

Function used to configure the factory.

Returns
Type Description
IFactoryOptionsConstistent<T><T>

Returns the modified create instance options.

| Improve this Doc View Source

For(Func<IMemberInformation, Boolean>)

Factory will be used to create values for members matching the given predicate.

Declaration
IFactoryOptionsConstistent<T> For(Func<IMemberInformation, bool> predicate)
Parameters
Type Name Description
System.Func<T, TResult><IMemberInformation, System.Boolean> predicate

The predicate used to find the members which should get created by the factory.

Returns
Type Description
IFactoryOptionsConstistent<T><T>

Returns the modified create instance options.

| Improve this Doc View Source

NotFor(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>>)

Factory will NOT be used to create values for members matching the specified options.

Declaration
IFactoryOptionsConstistent<T> NotFor(Func<IIncludeExcludeOptions<T>, IIncludeExcludeOptions<T>> configurationFunc)
Parameters
Type Name Description
System.Func<T, TResult><IIncludeExcludeOptions<T><T>, IIncludeExcludeOptions<T><T>> configurationFunc

Function used to configure the factory.

Returns
Type Description
IFactoryOptionsConstistent<T><T>

Returns the modified create instance options.

| Improve this Doc View Source

NotFor(Func<IMemberInformation, Boolean>)

Factory will NOT be used to create values for members matching the given predicate.

Declaration
IFactoryOptionsConstistent<T> NotFor(Func<IMemberInformation, bool> predicate)
Parameters
Type Name Description
System.Func<T, TResult><IMemberInformation, System.Boolean> predicate

The predicate used to find the members which should NOT get created by the factory.

Returns
Type Description
IFactoryOptionsConstistent<T><T>

Returns the modified create instance options.

Extension Methods

ObjectEx.SatisfiesWithMessages<T>(T, ISpecification<T>)
ObjectEx.Specification<T>(T, Func<T, Boolean>, String)
ObjectEx.GetNameChain<TObject, TMember>(TObject, Expression<Func<TObject, TMember>>)
ObjectEx.GetNameChain<TObject, TMember>(TObject, Expression<Func<TMember>>)
ObjectEx.Swap<T>(Object, ref T, ref T)
ObjectEx.ToSingleItemArray<T>(T)
ObjectEx.Maximum<TSource>(TSource, TSource[])
ObjectEx.Maximum<TSource, TResult>(TSource, Func<TSource, TResult>, TSource[])
ObjectEx.Minimum<TSource>(TSource, TSource[])
ObjectEx.Minimum<TSource, TResult>(TSource, Func<TSource, TResult>, TSource[])
ObjectEx.Satisfies<T>(T, ISpecification<T>)
ObjectEx.IfNull<T>(T, T)
ObjectEx.ThrowIfNull<TObject>(TObject, Expression<Func<TObject>>, String)
ObjectEx.ThrowIfNull<TObject>(TObject, String, String)
ObjectEx.GetName<TObject, TMember>(TObject, Expression<Func<TObject, TMember>>)
ObjectEx.GetName<TObject, TMember>(TObject, Expression<Func<TMember>>)
ObjectEx.IsNull(Object)
ObjectEx.IsNotNull(Object)
ObjectEx.As<T>(Object)
ObjectEx.Chain<T>(T, Action<T>)
ObjectEx.RefEquals(Object, Object)
ObjectEx.Coalesce<T>(T, T[])
ObjectEx.Coalesce<T>(T, T)
ObjectEx.CoalesceOrDefault<T>(T, T, T[])
ObjectEx.CoalesceOrDefault<T>(T, Func<T>, T[])
ObjectEx.ExecuteSafe<T>(T, Action<T>)
ObjectEx.ExecuteSafe<T, TResult>(T, Func<T, TResult>)
ObjectEx.ToBoolean(Object)
ObjectEx.ToBoolean(Object, IFormatProvider)
ObjectEx.ToByte(Object)
ObjectEx.ToByte(Object, IFormatProvider)
ObjectEx.ToChar(Object)
ObjectEx.ToChar(Object, IFormatProvider)
ObjectEx.ToDateTime(Object)
ObjectEx.ToDateTime(Object, IFormatProvider)
ObjectEx.ToDecimal(Object)
ObjectEx.ToDecimal(Object, IFormatProvider)
ObjectEx.ToDouble(Object)
ObjectEx.ToDouble(Object, IFormatProvider)
ObjectEx.ToInt32(Object)
ObjectEx.ToInt32(Object, IFormatProvider)
ObjectEx.ToInt16(Object)
ObjectEx.ToInt16(Object, IFormatProvider)
ObjectEx.ToInt64(Object)
ObjectEx.ToInt64(Object, IFormatProvider)
ObjectEx.IsIn<T>(T, T[])
ObjectEx.IsIn<T>(T, IEnumerable<T>)
ObjectEx.IsNotIn<T>(T, T[])
ObjectEx.IsNotIn<T>(T, IEnumerable<T>)
ObjectEx.IsDefault<T>(T)
DecimalEx.Sum<TSource>(TSource, Func<TSource, Decimal>, TSource[])
DecimalEx.Sum<TSource>(TSource, Func<TSource, Nullable<Decimal>>, TSource[])
DoubleEx.Sum<TSource>(TSource, Func<TSource, Double>, TSource[])
DoubleEx.Sum<TSource>(TSource, Func<TSource, Nullable<Double>>, TSource[])
Int32Ex.Sum<TSource>(TSource, Func<TSource, Int32>, TSource[])
Int32Ex.Sum<TSource>(TSource, Func<TSource, Nullable<Int32>>, TSource[])
Int64Ex.Sum<TSource>(TSource, Func<TSource, Int64>, TSource[])
Int64Ex.Sum<TSource>(TSource, Func<TSource, Nullable<Int64>>, TSource[])
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX