title: How do I pass an interface as a parameter to a method?
body: <p>I am a  newbie to C#. Could you please tell me how to pass an interface as a parameter to a method?<br>
  i.e. I want to access the interface members(property) and assign the values to it and send that interface as a parameter to another method.</p>
  
  <p>Say for example if I have an interface as <strong>IApple</strong> which has members as property <strong>int i</strong> and <strong>int j</strong>
  I want to assign values to <strong>i</strong> and <strong>j</strong> and send the whole interface as a parameter say like this</p>
  
  <p><strong>Method(IApple var);</strong>  </p>
  
  <p>Is it possible? Sorry if am poor at basics please help me out. thanks in advance</p>