Class SepaCollection<TSepaObject>
Implements
IList<TSepaObject>
ICollection<TSepaObject>
IReadOnlyList<TSepaObject>
IReadOnlyCollection<TSepaObject>
IEnumerable<TSepaObject>
Inherited Members
Namespace: Subsembly.Sepa
Assembly: Subsembly.Sepa.dll
Syntax
public class SepaCollection<TSepaObject> : Collection<TSepaObject>, IList<TSepaObject>, ICollection<TSepaObject>, IReadOnlyList<TSepaObject>, IReadOnlyCollection<TSepaObject>, IEnumerable<TSepaObject>, IList, ICollection, IEnumerable where TSepaObject : SepaObject
Type Parameters
Name | Description |
---|---|
TSepaObject |
Properties
IsEmpty
Declaration
public virtual bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
IsValid
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
AddRange(IEnumerable<TSepaObject>)
Declaration
public void AddRange(IEnumerable<TSepaObject> vObjects)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSepaObject> | vObjects |
RemoveAll(Predicate<TSepaObject>)
Declaration
public int RemoveAll(Predicate<TSepaObject> fnPredicate)
Parameters
Type | Name | Description |
---|---|---|
Predicate<TSepaObject> | fnPredicate |
Returns
Type | Description |
---|---|
int |
Validate(ICollection<SepaException>, string)
Validate all child objects of this collection without throwing an exception.
Declaration
public virtual void Validate(ICollection<SepaException> vErrors, string sPath)
Parameters
Type | Name | Description |
---|---|---|
ICollection<SepaException> | vErrors | Container that receives all diagnostic output from validation. For each error found, an implementation shall create a SepaException and add it to this container. |
string | sPath | 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
Type | Condition |
---|---|
ArgumentNullException | The parameter |
WriteXml(XmlWriter, SepaMessageInfo)
Declaration
public virtual void WriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | aXmlWriter | |
SepaMessageInfo | aMessageInfo |