title: Referencing property of one class in another class?
body: <p>I have a C# script for a server I am trying to get working and I keep getting the following error:</p>
  
  <p><code>CS0120: Line 56: An object reference is required for the non-static field, method, or property 'Server.Items.AgelessHouseDeed.Value.get'</code></p>
  
  <p>Here is the code in question:</p>
  
  <pre><code>public class AgelessHouseTimer : Timer
  {
      private HouseSign sign;
      private int m_Value = AgelessHouseDeed.Value;
  
      public AgelessHouseTimer( HouseSign h ) : base( TimeSpan.FromDays( m_Value ) )
          {
              sign = h;
              Priority = TimerPriority.OneSecond;
          }
  
      protected override void OnTick()
          {
          sign.RestrictDecay = false;
      }
  }
  
  public class AgelessHouseDeed : Item 
  {
      private int m_Value;
          [CommandProperty(AccessLevel.GameMaster)]
          public int Value
          {
              get
              {
                  return m_Value;
          }
          }
  
      [Constructable]
      public AgelessHouseDeed() : base( 0x14F0 )
      {
          Weight = 1.0;
          Hue = 1159;
          LootType = LootType.Blessed;
          Name = "An Ageless House Deed ( 30 Days )";
          m_Value = 30;
  
      }
  
      [Constructable]
      public AgelessHouseDeed(int value) : base( 0x14F0 )
      {
          Weight = 1.0;
          Hue = 1159;
          LootType = LootType.Blessed;
          Name = "An Ageless House Deed ( 30 Days )";
          m_Value = value;
      }
  }
  </code></pre>
  
  <p></p>
  
  <p>As you can see I am trying to access the m_Value of the constructable in the timer to set the timer to the appropriate time.</p>