A
Akshay Kumar
I have a collection class and in order to make it type safe etc , I only add
and retrive members of Interface types.
But during XMLSerialization I get errors.
Is there any workaround ?
public class OrgRatingCollection:CollectionBase
{
public void Add(IRating item)
{
this.List.Add(item);
}
public IRating this[int index]
{
get
{
return (IRating) this.List[index];
}
set
{
this.List[index] = value;
}
}
}
}
and retrive members of Interface types.
But during XMLSerialization I get errors.
Is there any workaround ?
public class OrgRatingCollection:CollectionBase
{
public void Add(IRating item)
{
this.List.Add(item);
}
public IRating this[int index]
{
get
{
return (IRating) this.List[index];
}
set
{
this.List[index] = value;
}
}
}
}