Hi...
I am using hashtable as below
buffer=new Hashtable();
if (table.Rows.Count > 0)
{
if (this.buffer.get_Item(this.Flex.Row) == null)
{
this.buff = (byte[])table.Rows[0]["Picture"];
this.buffer.set_Item(this.Flex.Row, this.buff);
}
this.lblpic.Visible = false;
this.buff = (byte[])this.buffer.get_Item(this.Flex.Row);
MemoryStream stream = new MemoryStream(this.buff, true);
stream.Write(this.buff, 0, this.buff.Length);
Bitmap bitmap = new Bitmap((Stream)stream);
this.pictureBox1.Image = bitmap;
stream.Flush();
stream.Close();
}
get_Item();
set_Item();
methods does not works and error is coming as below.. for get_item method
error...!
System.Collections.Hashtable.this[object].get': cannot explicitly call operator or accessor
error2 for set_item method
System.Collections.Hashtable.this[object].set': cannot explicitly call operator or accessor
any help me... please
Loading

VulpesRank #55 · 29.2K reputationPosted Apr 20, 2011, 1:05 AM EDT
CrishRank #1,487 · 1.1K reputationPosted Apr 20, 2011, 3:00 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 20, 2011, 1:24 PM EDT
Kanhialal kkRank #8,477 · 221 reputationPosted Apr 20, 2011, 10:11 PM EDT
Hashtable hashtable;
object obj2;
(hashtable = this.invoicetable).set_Item(obj2 = num3, hashtable.get_Item(obj2) + this.txtinvoice.Text.Substring(m, 1));
I am working with Hashtable but it does not allows set_item() and get_item() methods in 2.0 framework....
error:
System.Collections.Hashtable.this[object].set': cannot explicitly call operator or accessor..
also same error for get method....
please help,,,,
VulpesRank #55 · 29.2K reputationPosted Apr 21, 2011, 1:11 AM EDT