It may sound a little bit complicated but I will try to explain it clearly.
Is it possible in C# if I have a long interface :
public interface IInterface
{
bool interface_1;
bool interface_2;
bool interface_3;
bool interface_4;
bool interface_5;
...
}
And a class that implements the interface
public class MyClass : IInterface
{
...
}
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 :
IInterface myInterface;
MyClass myClass;
myClass.SetIInterface(myInterface);