D
douglas wittner
i am not sure if this is the correct place to post this; but can anyone tell
me why this class would not be serializable?
i can persist this in a blob so i am confident it would be serializable.
when i access via a web service i get:
"The 'taxValues' is of type TaxOutput, which does not support
serialization."
any help is great!
doug
[Serializable]
public class TaxOutput
{
private double _StateTax;
private double _CityTax;
private double _CountyTax;
private double _DistrictTax;
private double _totalTax;
private double _totalTaxRate;
private double _CityTaxRate;
private double _CountyTaxRate;
private double _StateTaxRate;
private double _DistrictTaxRate;
public double CityTax
{
get
{
return _CityTax;
}
set
{
_CityTax = value;
}
}
public double CountyTax
{
get
{
return _CountyTax;
}
set
{
_CountyTax = value;
}
}
public double DistrictTax
{
get
{
return _DistrictTax;
}
set
{
_DistrictTax = value;
}
}
public double StateTax
{
get
{
return _StateTax;
}
set
{
_StateTax = value;
}
}
public double TotalTax
{
get
{
return _totalTax;
}
set
{
_totalTax = value;
}
}
public double TotalTaxRate
{
get
{
return _totalTaxRate;
}
set
{
_totalTaxRate = value;
}
}
public double CityTaxRate
{
get
{
return _CityTaxRate;
}
set
{
_CityTaxRate = value;
}
}
public double CountyTaxRate
{
get
{
return _CountyTaxRate;
}
set
{
_CountyTaxRate = value;
}
}
public double DistrictTaxRate
{
get
{
return _DistrictTaxRate;
}
set
{
_DistrictTaxRate = value;
}
}
public double StateTaxRate
{
get
{
return _StateTaxRate;
}
set
{
_StateTaxRate = value;
}
}
}
me why this class would not be serializable?
i can persist this in a blob so i am confident it would be serializable.
when i access via a web service i get:
"The 'taxValues' is of type TaxOutput, which does not support
serialization."
any help is great!
doug
[Serializable]
public class TaxOutput
{
private double _StateTax;
private double _CityTax;
private double _CountyTax;
private double _DistrictTax;
private double _totalTax;
private double _totalTaxRate;
private double _CityTaxRate;
private double _CountyTaxRate;
private double _StateTaxRate;
private double _DistrictTaxRate;
public double CityTax
{
get
{
return _CityTax;
}
set
{
_CityTax = value;
}
}
public double CountyTax
{
get
{
return _CountyTax;
}
set
{
_CountyTax = value;
}
}
public double DistrictTax
{
get
{
return _DistrictTax;
}
set
{
_DistrictTax = value;
}
}
public double StateTax
{
get
{
return _StateTax;
}
set
{
_StateTax = value;
}
}
public double TotalTax
{
get
{
return _totalTax;
}
set
{
_totalTax = value;
}
}
public double TotalTaxRate
{
get
{
return _totalTaxRate;
}
set
{
_totalTaxRate = value;
}
}
public double CityTaxRate
{
get
{
return _CityTaxRate;
}
set
{
_CityTaxRate = value;
}
}
public double CountyTaxRate
{
get
{
return _CountyTaxRate;
}
set
{
_CountyTaxRate = value;
}
}
public double DistrictTaxRate
{
get
{
return _DistrictTaxRate;
}
set
{
_DistrictTaxRate = value;
}
}
public double StateTaxRate
{
get
{
return _StateTaxRate;
}
set
{
_StateTaxRate = value;
}
}
}