A class that return value called by his name ?

Hello there, I don’t even know if that’s possible, assuming that’s a complexe topic, but I want to create class, that can handle a global getter and setter.

This is an example, but I wish I could generalize it
The [Expression] is the part I’m searching for, I have no idea of what it could be

public class intP
{
       public int intValue;
       [Expression] { get { return intValue; } set { intValue = value; }
}
public class Test
{
      public intP money;
      public void AddMoney (int amount) { money += amount; }
}

Because I want to create my custom properties, working like float or int but also with the ability to have level, or utilities x)
I want to use that system to make some item databases, dialog editors etc

Make the property static.

public class Example {
   public static int Foo { get; set; }
}

Then from anywhere in any script, you only need to call:

Example.Foo

Thanks Vryken for your reply !
I know that issue but that not the same topic, finally in another forum someone gave me the solution x)

The issue is by using parameters

public class FloatP {
public float value;
public static FloatP operator + (FloatP l, FloatP r) { l.value += r.value; return l; }
}

// then you can have :

FloatP a, b;
a + b; // Working great ^^