class MyClass {
int _age;
// Property getter and setter
public int Age {
get => _age;
set => _age = value >= 0 ?? value : throw new ArgumentOutOfRangeException(nameof(value));
// Constructor
public MyClass(int age) => Age = age;
// Finalizer
~MyClass() => ResourceManager.NotifyFinalizedMyClass(this);
}