C
Cybertof
Hello,
Do you know why i get the error
"Left hand side must be variable, property or indexer"
with the following code :
struct FundDataStruct
{
internal int quantity;
internal float price;
internal int quantity_left;
}
foreach( FundDataStruct MyFundDataTmp in aFundExtract )
{
MyFundDataTmp.quantity_left = MyFundDataTmp.quantity_left - 1;
}
I have the impression if i replace the struct by a class, the assignment
seems to work....
Regards,
Cybertof.
Do you know why i get the error
"Left hand side must be variable, property or indexer"
with the following code :
struct FundDataStruct
{
internal int quantity;
internal float price;
internal int quantity_left;
}
foreach( FundDataStruct MyFundDataTmp in aFundExtract )
{
MyFundDataTmp.quantity_left = MyFundDataTmp.quantity_left - 1;
}
I have the impression if i replace the struct by a class, the assignment
seems to work....
Regards,
Cybertof.