Click here to Skip to main content
15,901,871 members

Comments by jfriedman (Top 30 by date)

jfriedman 16-Oct-13 1:51am View    
Reason for my vote of 1 \n You don't cache the field lokup so if you call this function 100 times you have 99 iterations where you are using the same field info however you will waste time locating that same field info on the type 99 times.
jfriedman 13-Mar-13 22:17pm View    
Reason for my vote of 5 \n Excellent advice, great article for showing an example of useless code with bad habits :P
jfriedman 5-Dec-12 21:02pm View    
Reason for my vote of 2 \n Forgot about Reading the BMP Palettes and made your own..

The whole thing could be done like this private void button1_Click(object sender, EventArgs e)
{
using (FileStream file = new FileStream("face.bmp", FileMode.Open, FileAccess.Read))
{
this.pictureBox1.Image = Image.FromStream(file);
}
}
jfriedman 13-May-12 9:57am View    
Reason for my vote of 4
Sweet, Simple and to the Point. I would have given you the extra point if you completed it by having the methods being Extensions to Directory. Good job otherwise.
jfriedman 6-May-12 11:49am View    
Reason for my vote of 3
See improvement