Class SepaCollection<TSepaObject>
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
IsValid
public bool IsValid { get; }
Property Value
Methods
AddRange(IEnumerable<TSepaObject>)
public void AddRange(IEnumerable<TSepaObject> vObjects)
Parameters
vObjectsIEnumerable<TSepaObject>
RemoveAll(Predicate<TSepaObject>)
public int RemoveAll(Predicate<TSepaObject> fnPredicate)
Parameters
fnPredicatePredicate<TSepaObject>
Returns
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
vErrorsICollection<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.
sPathstringThe 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, orsPathwasnull.
WriteXml(XmlWriter, SepaMessageInfo)
public virtual void WriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
aXmlWriterXmlWriteraMessageInfoSepaMessageInfo