G
Guest
Hi,
I want to bind a enum data type with XML datasource.
<?xml version="1.0" encoding="utf-8" ?>
<GlobalSettings>
<Employee>
<MinimumAge ID="10">Minimum Age</MinimumAge>
</Employee>
</GlobalSettings>
I implement this in a class:
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
class GlobalSettings
{
// here i want to call the XML file values & create the enum
definitions
}
}
In design time , I want to retreive the settings as follows:
test.GlobalSettings.Employee.MinimumAge // this will return me the ID of the
settings.
Thanks,
I want to bind a enum data type with XML datasource.
<?xml version="1.0" encoding="utf-8" ?>
<GlobalSettings>
<Employee>
<MinimumAge ID="10">Minimum Age</MinimumAge>
</Employee>
</GlobalSettings>
I implement this in a class:
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
class GlobalSettings
{
// here i want to call the XML file values & create the enum
definitions
}
}
In design time , I want to retreive the settings as follows:
test.GlobalSettings.Employee.MinimumAge // this will return me the ID of the
settings.
Thanks,