Siemka. Mam mały problem z rzutowaniem w runtime z string na IPAddress
Exeption to:"Invalid cast from 'System.String' to 'System.Net.IPAddress'."
Oto urywek kodu:
foreach (KeyValuePair<string, object> Item in SettingObjectList)
{
foreach (PropertyInfo ItemProperty in Item.Value.GetType().GetProperties())
{
ItemProperty.SetValue(Item.Value, Convert.ChangeType(IniReader.ReadSetting(ItemProperty.Name, Item.Key + ".ini", ""), ItemProperty.PropertyType));
}
}