[C#] Probleme Cast ou compilateur
Bonjour j'ai un petit probleme : :(
j'utilise visual sudio 2003 pour info
j'obtient une erreur sur la ligne apres le if pourtant cela me semble correct pouvez vous m'aider merci d'avance
ERREUR : La partie gauche d'une assignation doit être une variable, une propriété ou un indexeur (CS0131)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
struct INI_ITEM
{
public string Key_name;
public string Key_value;
}
Hashtable myHT = new Hashtable();
public void ModifyValue(string Section, string Key, string Value, string OldValue)
{
for (int index =0;index<TotalKeysinSection(Section);index++)
{
if (((INI_ITEM)(((ArrayList) myHT[Section])[index])).Key_name == Key)
((INI_ITEM)(((ArrayList) myHT[Section])[index])).Key_value = Value;
}
} |
merci d'avance