Set all members of class that implements an interface from an object of the interface type without a lot of writing code in C#
<p>It may sound a little bit complicated but I will try to explain it clearly.</p>

<p>Is it possible in C# if I have a long interface :</p>

<pre><code>public interface IInterface
{
    bool interface_1;
    bool interface_2;
    bool interface_3;
    bool interface_4;
    bool interface_5;
    ...
}
</code></pre>

<p>And a class that implements the interface</p>

<pre><code>public class MyClass : IInterface
{
    ...
}
</code></pre>

<p>Imagine I have an object of IInterface myInterface, is there a way to create a MyClass object myClass and to set all fields of myClass with the one of myInterface without setting all fields one by one. Like :</p>

<pre><code>IInterface myInterface;
MyClass myClass;
myClass.SetIInterface(myInterface);
</code></pre>
