jai une fonticion qui va comme suit:
private string
ValueToString( object o
, PropertyInfo prop
)
{
if( prop
.GetType
typeof( string ) )
return (""" + prop
.
GetValue( o
,
null
) + """);
return prop
.
GetValue( o
,
null
);
}
Dans cette fonction, je voudrais y intégrer :
Si c'est une enum...
return (NomdeLenum + "." + prop.
GetValue
( o,
null ));
Eric