S
Swappy
hi,
I have a class as MyClass & SecondClass which implement IMyInterface
interface.
class MyClass
{
Private SecondClass m_SecondClass;
}
Class SecondClass : IMyInterface
{
}
when i will run below code
MyClass Obj = new MyClass();
XmlSerializer serializer = new XmlSerializer(Obj.GetType());
Then while creating object of XmlSerializer it will give error of "There was
an Error Reflecting Type"
& the inner Exception will be " Interface cannot serialize"
The situation is like that I cannot eliminate interface.
How can i proceed to avoid that problem?
if possible PLZ suggest any other options.
I have a class as MyClass & SecondClass which implement IMyInterface
interface.
class MyClass
{
Private SecondClass m_SecondClass;
}
Class SecondClass : IMyInterface
{
}
when i will run below code
MyClass Obj = new MyClass();
XmlSerializer serializer = new XmlSerializer(Obj.GetType());
Then while creating object of XmlSerializer it will give error of "There was
an Error Reflecting Type"
& the inner Exception will be " Interface cannot serialize"
The situation is like that I cannot eliminate interface.
How can i proceed to avoid that problem?
if possible PLZ suggest any other options.