Policies in functions/methods
<p>Out of curiosity (I just want to know how is it done in C#) how are you supplying a policy to a function/method? For example, if I have a function which sorts in C++ I can do something like this:  </p>

<pre><code>std::sort(v.begin(),v.end(), Comparator&lt;char&gt;());
</code></pre>

<p>where v is a vector, v.begin is beginning of it and v.end end of this vector and this curious Comparator() is a policy which specifies on what critceria is this vector to be sorted. It can be for example that sorting will be done ignoring case of a char etc etc.<br>
How would you do the same in C#?</p>
