How, if possible, can you pass in a C# Property to be used like a method?
<p>I know Func&lt;> is used to pass a method that has a return value to be used inside another method. I know Action&lt;> is used to pass a method that does not have a return value to be used inside another method. Is there a way to pass in a property so it's get/set can be used inside another method?</p>

<p>For example, here is a method that uses Func&lt;>:</p>

<pre><code>public bool RangeCheck (int minVal, int maxVal, Func&lt;&lt; int, int &gt;&gt; someMethod)  
{  
    bool retval = true;  
    try  
    {  
        for (int count = min; count &lt;= max; count++)  
        {  
            int hello = someMethod(count);  
        }  
    }  
    catch  
    {  
        retval = false;  
    }  
    return retval;  
}  
</code></pre>

<p>What I am looking for is something like this:</p>

<pre><code>public bool RangeCheck(int min, int max, Prop&lt;&lt; int &gt;&gt; someProperty)  
{  
    bool retval = true;  
    try  
    {  
        for (int count = min; count &lt;= max; count++)  
        {  
            someProperty = count;  
        }  
    }  
    catch  
    {  
        retval = false;  
    }  
    return retval;  
}  
</code></pre>

<p>Is there anything out there like this? I can't find anything. This would be very useful. Thanks.</p>
