which interfaces one class implements?
<p>From code how can we know which interfaces one class implements?</p>

<p>Example:</p>

<pre><code>interface IDrink
interface IEat

class Milk : IDrink    
class Water: IDrink    
class Potato: IEat
</code></pre>

<p>I want to know if Potato implements IDrink or not. How can I do it?</p>

<p>.</p>

<p><strong>Use of this:</strong></p>

<p>I've one method that receives one "<code>object myObject</code>" and I need to see if I cast it to IDrink or IEat.</p>
