C# Class Spring.Objects.Factory.Config.ManagedList

Inheritance: ArrayList, IManagedCollection, IMergable
Show file Open project: luizcarlosfaria/summer-net Class Usage Examples

Public Methods

Method Description
ManagedList ( ) : System

Initializes a new instance of the ManagedList class that is empty and has the default initial capacity.

ManagedList ( int capacity ) : System

Initializes a new instance of the ManagedList class that is empty and has the specified initial capacity.

Merge ( object parent ) : object

Merges the current value set with that of the supplied object.

The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.

Resolve ( string objectName, IObjectDefinition definition, string propertyName, ManagedCollectionElementResolver resolver ) : ICollection

Resolves this managed collection at runtime.

Method Details

ManagedList() public method

Initializes a new instance of the ManagedList class that is empty and has the default initial capacity.
public ManagedList ( ) : System
return System

ManagedList() public method

Initializes a new instance of the ManagedList class that is empty and has the specified initial capacity.
is less than zero.
public ManagedList ( int capacity ) : System
capacity int The number of elements that the new list can initially store.
return System

Merge() public method

Merges the current value set with that of the supplied object.
The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.
If the supplied parent is null If merging is not enabled for this instance, /// (i.e. MergeEnabled equals false.
public Merge ( object parent ) : object
parent object The parent object to merge with
return object

Resolve() public method

Resolves this managed collection at runtime.
public Resolve ( string objectName, IObjectDefinition definition, string propertyName, ManagedCollectionElementResolver resolver ) : ICollection
objectName string /// The name of the top level object that is having the value of one of it's /// collection properties resolved. ///
definition IObjectDefinition /// The definition of the named top level object. ///
propertyName string /// The name of the property the value of which is being resolved. ///
resolver ManagedCollectionElementResolver /// The callback that will actually do the donkey work of resolving /// this managed collection. ///
return ICollection