Show / Hide Table of Contents

Class InstanceFactoryBase

Base class for instance factories.

Inheritance
System.Object
InstanceFactoryBase
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)
Namespace:Extend
Assembly:Extend.dll
Syntax
public abstract class InstanceFactoryBase : IInstanceFactory

Constructors

| Improve this Doc View Source

InstanceFactoryBase(String, String)

Initializes a new instance of the InstanceFactoryBase class.

Declaration
protected InstanceFactoryBase(string name, string description)
Parameters
Type Name Description
System.String name

The name of the factory.

System.String description

The description of the factory.

Properties

| Improve this Doc View Source

FactoryDescription

Gets the description of the factory.

Declaration
public string FactoryDescription { get; }
Property Value
Type Description
System.String

The description of the factory.

Implements
IInstanceFactory.FactoryDescription
| Improve this Doc View Source

FactoryName

Gets the name of the factory.

Declaration
public string FactoryName { get; }
Property Value
Type Description
System.String

The name of the factory.

Implements
IInstanceFactory.FactoryName
| Improve this Doc View Source

SelectionRules

Gets the selection rules of the factory.

Declaration
public List<IMemberSelectionRule> SelectionRules { get; }
Property Value
Type Description
System.Collections.Generic.List<T><IMemberSelectionRule>

The selection rules of the factory.

Implements
IInstanceFactory.SelectionRules

Methods

| Improve this Doc View Source

AddSelectionRule(IMemberSelectionRule)

Adds the given IMemberSelectionRule to the factory.

Declaration
public IInstanceFactory AddSelectionRule(IMemberSelectionRule memberSelectionRule)
Parameters
Type Name Description
IMemberSelectionRule memberSelectionRule

The IMemberSelectionRule to add.

Returns
Type Description
IInstanceFactory

Returns the modified factory.

Implements
IInstanceFactory.AddSelectionRule(IMemberSelectionRule)
Exceptions
Type Condition
System.ArgumentNullException

memberSelectionRule can not be null.

| Improve this Doc View Source

CreateValue(IMemberInformation)

Gets the value for the given IMemberInformation.

Declaration
public abstract object CreateValue(IMemberInformation memberInformation)
Parameters
Type Name Description
IMemberInformation memberInformation

Information about the member to create a value for.

Returns
Type Description
System.Object

Returns the created value.

Implements
IInstanceFactory.CreateValue(IMemberInformation)
| Improve this Doc View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string that represents the current object.

Overrides
System.Object.ToString()

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