G
Gonza
Hi group, i'm getting the following excepction while trying to
serialize a class:
Types
'NYC.TrueFinance.BusinessEntities.ExtendedBaseEntityTypeData.EntityTypes'
and 'NYC.TrueFinance.BusinessEntities.BaseEntityTypeData.EntityTypes'
both use the XML type name, 'EntityTypes', from namespace ''. Use XML
attributes to specify a unique XML name and/or namespace for the type.
The code for the class in question (and it's superclass) is the
following:
public class BaseEntityTypeData {
public enum EntityTypes {
EntesRegistrales,
EstadosEstudio
}
private EntityTypes _type;
public EntityTypes Type
{
get { return _type; }
set { _type = value; }
}
}
public class ExtendedBaseEntityTypeData:BaseEntityTypeData
{
public new enum EntityTypes
{
Actividades,
TiposCarteras
}
private EntityTypes _type;
public new EntityTypes Type
{
get
{
return _type;
}
set
{
_type = value;
}
}
}
I've tried setting different names for each class but it didn't help
Any help would be greatly appreciated.
Gonzalo
serialize a class:
Types
'NYC.TrueFinance.BusinessEntities.ExtendedBaseEntityTypeData.EntityTypes'
and 'NYC.TrueFinance.BusinessEntities.BaseEntityTypeData.EntityTypes'
both use the XML type name, 'EntityTypes', from namespace ''. Use XML
attributes to specify a unique XML name and/or namespace for the type.
The code for the class in question (and it's superclass) is the
following:
public class BaseEntityTypeData {
public enum EntityTypes {
EntesRegistrales,
EstadosEstudio
}
private EntityTypes _type;
public EntityTypes Type
{
get { return _type; }
set { _type = value; }
}
}
public class ExtendedBaseEntityTypeData:BaseEntityTypeData
{
public new enum EntityTypes
{
Actividades,
TiposCarteras
}
private EntityTypes _type;
public new EntityTypes Type
{
get
{
return _type;
}
set
{
_type = value;
}
}
}
I've tried setting different names for each class but it didn't help
Any help would be greatly appreciated.
Gonzalo