Answer:
- : IComparable
- : IDisposable
- public int CompareTo(object obj)
- public void Dispose()
- _loadCollection[0].Amount++;
- return obj == null? 1 : _loanCollection.Length;
public class LoanCollection
{
- : IEnumerable
private readonly Load[] _loanCollection;
public LoanCollection(Loan[] loanArray)
{
}
public LoanCollection(Loan[] loanArray)
{
_loanCollection = new Loan(loanArray.Length);
for (int i = 0; i < loanArray.Length; i++)
{
}
for (int i = 0; i < loanArray.Length; i++)
{
_loanCollection[i] = loanArray[i];
}
- public IEnumerator GetEnumerator()
- return _loanCollection.GetEnumerator();