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
VulpesPosted Apr 20, 2011, 5:05 AM
VulpesPosted Apr 21, 2011, 5:11 AM
Kanhialal kkPosted Apr 21, 2011, 2:11 AM
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,,,,
Suthish NairPosted Apr 20, 2011, 5:24 PM
CrishPosted Apr 20, 2011, 7:00 AM