A field initializer cannot reference the nonstatic field, method, or property
<p>Using C# and asp.net I receive the error below. I'm note sure what could be the problem. Could you point me out in the right direction? Thansk</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MySite
{
    public class Reminders
    {
        public Dictionary&lt;TimeSpan, string&gt; TimeSpanText { get; set; }

        // We are setting the default values using the Costructor
        public Reminders()
        {
            TimeSpanText.Add(TimeSpan.Zero, "None");
            TimeSpanText.Add(new TimeSpan(0, 0, 5, 0), "5 minutes before");
            TimeSpanText.Add(new TimeSpan(0, 0, 15, 0), "15 minutes before");
            TimeSpanText.Add(new TimeSpan(0, 0, 30, 0), "30 minutes before");
            TimeSpanText.Add(new TimeSpan(0, 1, 0, 0), "1 hour before");
            TimeSpanText.Add(new TimeSpan(0, 2, 0, 0), "2 hours before");
            TimeSpanText.Add(new TimeSpan(1, 0, 0, 0), "1 day before");
            TimeSpanText.Add(new TimeSpan(2, 0, 0, 0), "2 day before");
        }

    }
}
</code></pre>

<p>Using the class</p>

<pre><code>private Reminders reminder = new Reminders();
private dynamic defaultReminder = reminder.TimeSpanText[TimeSpan.FromMinutes(15)];
</code></pre>

<p>Error</p>

<pre><code>A field initializer cannot reference the nonstatic field, method, or property
</code></pre>
