P
Peb
Hi All,
I have two properties of type PointXYZ width 2 differents default values
I would like that the default values of x, y and z properties inherite from
the default value of the object
public class PointXYZ
{
[DefaultValue(????)] //Not sure
public float X
{
get ...
set...
}
/May be
private bool ShouldSerializeX()
{
????
}
.....
}
[TypeConverter(typeof(PointXYZConverter))]
[DefaultValue(typeof(PointXYZ), "0; 0; 0")]
public PointXYZ Origin
{
get..
set..
}
[TypeConverter(typeof(PointXYZConverter))]
[DefaultValue(typeof(PointXYZ), "1; 1; 1")]
public PointXYZ End
{
get..
set..
}
All the best
Polo
I have two properties of type PointXYZ width 2 differents default values
I would like that the default values of x, y and z properties inherite from
the default value of the object
public class PointXYZ
{
[DefaultValue(????)] //Not sure
public float X
{
get ...
set...
}
/May be
private bool ShouldSerializeX()
{
????
}
.....
}
[TypeConverter(typeof(PointXYZConverter))]
[DefaultValue(typeof(PointXYZ), "0; 0; 0")]
public PointXYZ Origin
{
get..
set..
}
[TypeConverter(typeof(PointXYZConverter))]
[DefaultValue(typeof(PointXYZ), "1; 1; 1")]
public PointXYZ End
{
get..
set..
}
All the best
Polo