public void Init()
 {
     Attribute attr =
         typeof(TestAttributedObjectTestObjects).GetField("TestObject", BindingFlags.Public|BindingFlags.Static)
             .GetCustomAttribute(typeof(ContainSettingsAttribute));
     obj = new AttributedObject(typeof(TestAttributedObjectTestObjects), "TestObject", attr);
 }
 /// <summary>
 /// provides easy access to a Setting
 /// </summary>
 /// <param name="path">the path to the setting. folders are seperated by a / (Slash)</param>
 /// <param name="attributedObject">the object with the SettingAttribute</param>
 internal SettingItem(string path, AttributedObject attributedObject)
 {
     _attributedObject = attributedObject;
     Path = path;
     Type type = attributedObject.Value.GetType();
     if ((type == typeof(short)) ||
         (type == typeof(ushort)) ||
         (type == typeof(byte)) ||
         (type == typeof(sbyte)) ||
         (type == typeof(int)) ||
         (type == typeof(uint)) ||
         (type == typeof(long)) ||
         (type == typeof(ulong)))
     {
         IsNumeric = true;
     }
     else if ((type == typeof(double)) ||
               (type == typeof(float)) ||
               (type == typeof(decimal)))
     {
         IsNumeric = true;
         IsPointNumber = true;
     }
 }