Diego inherited a system from a "senior" developer. The largest challenge in the system was that it had to handle DataSets that could contain up to 700 columns, but could contain less.

Judging by the code, it's easy to see why a task of this complexity could have only been implemented by a senior developer.

public class HistoryResultRow
{
    #region Static Variables

    public static readonly int ColsMaxCapacity = 700;

    #endregion

    #region Public Properties

    public DateTime Date
    {
        get;
        set;
    }

    public HistoryResultValue Col0
    {
        get;
        set;
    }

    public HistoryResultValue Col1
    {
        get;
        set;
    }

    public HistoryResultValue Col2
    {
        get;
        set;
    }

    public HistoryResultValue Col3
    {
        get;
        set;
    }

    public HistoryResultValue Col4
    {
        get;
        set;
    }

    public HistoryResultValue Col5
    {
        get;
        set;
    }

    public HistoryResultValue Col6
    {
        get;
        set;
    }

    public HistoryResultValue Col7
    {
        get;
        set;
    }

...and so on, ad nauseum...

    public HistoryResultValue Col694
    {
        get;
        set;
    }

    public HistoryResultValue Col695
    {
        get;
        set;
    }

    public HistoryResultValue Col696
    {
        get;
        set;
    }

    public HistoryResultValue Col697
    {
        get;
        set;
    }

    public HistoryResultValue Col698
    {
        get;
        set;
    }

    public HistoryResultValue Col699
    {
        get;
        set;
    }

    public HistoryResultValue Col700
    {
        get;
        set;
    }

    #endregion
}
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!