R
rithesh.rg
Hello,
Given below is a part of my code. In the code i am trying to parse
through a string and replace all "+" characters by "*".
string enc_msg = Convert.ToBase64String(full_enc);
for (i = 0; i < enc_msg.Length; i++)
{
if (enc_msg == '+' )
{
enc_msg = '*';
}
}
However when i build, i get the following error -
" Property or indexer 'string.this[int]' cannot be assigned to -- it
is read only "
Could someone kindly let me know whats wrong with my code and suggest
any changes
Regards,
Rithesh Swamy
Given below is a part of my code. In the code i am trying to parse
through a string and replace all "+" characters by "*".
string enc_msg = Convert.ToBase64String(full_enc);
for (i = 0; i < enc_msg.Length; i++)
{
if (enc_msg == '+' )
{
enc_msg = '*';
}
}
However when i build, i get the following error -
" Property or indexer 'string.this[int]' cannot be assigned to -- it
is read only "
Could someone kindly let me know whats wrong with my code and suggest
any changes
Regards,
Rithesh Swamy