using System;

namespace Avalonia.Markup.Xaml
{
    public interface IProvideValueTarget
    {
        object
ProvideValue(object target);
    }
}
Q:

How to get the value of a variable in a function?

I have a function that is called from another function. I want to get the value of a variable in the function that is called.
I tried this: