Class SepaCollection<TSepaObject>

Namespace
Subsembly.Sepa
Assembly
Subsembly.Sepa.dll
public class SepaCollection<TSepaObject> : Collection<TSepaObject>, IList<TSepaObject>, ICollection<TSepaObject>, IReadOnlyList<TSepaObject>, IReadOnlyCollection<TSepaObject>, IEnumerable<TSepaObject>, IList, ICollection, IEnumerable where TSepaObject : SepaObject

Type Parameters

TSepaObject
Inheritance
Collection<TSepaObject>
SepaCollection<TSepaObject>
Implements
IList<TSepaObject>
ICollection<TSepaObject>
IReadOnlyList<TSepaObject>
IReadOnlyCollection<TSepaObject>
IEnumerable<TSepaObject>
Derived
Inherited Members

Properties

IsEmpty

public virtual bool IsEmpty { get; }

Property Value

bool

IsValid

public bool IsValid { get; }

Property Value

bool

Methods

AddRange(IEnumerable<TSepaObject>)

public void AddRange(IEnumerable<TSepaObject> vObjects)

Parameters

vObjects IEnumerable<TSepaObject>

RemoveAll(Predicate<TSepaObject>)

public int RemoveAll(Predicate<TSepaObject> fnPredicate)

Parameters

fnPredicate Predicate<TSepaObject>

Returns

int

Validate(ICollection<SepaException>, string)

Validate all child objects of this collection without throwing an exception.

public virtual void Validate(ICollection<SepaException> vErrors, string sPath)

Parameters

vErrors ICollection<SepaException>

Container that receives all diagnostic output from validation. For each error found, an implementation shall create a SepaException and add it to this container.

sPath string

The complete path from the SEPA document root to the parent of this collection. This is different than the OnValidate(ICollection<SepaException>, string) method!

Exceptions

ArgumentNullException

The parameter vErrors, or sPath was null.

WriteXml(XmlWriter, SepaMessageInfo)

public virtual void WriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)

Parameters

aXmlWriter XmlWriter
aMessageInfo SepaMessageInfo