Wednesday, September 10, 2008

Strongly Typed Explanation

http://www.eggheadcafe.com/community/aspnet/7/10028476/strong-typed.aspx

Irfan View

I used the Tool (Irfan view) to check whether the given image is Jpeg, Progressive Jpeg, Bmp ....or not.

This tool will check the internal Header information about the images.

As a result this tool will inform the correct format by checking the inside bytes but not using the extension. Because an image may be Jpeg or bmp by extension. But we can't say that image is jpeg or bmp only by seeing the extension internally it may not be of that type.

Tuesday, September 9, 2008

Blog i likes most

http://devlicio.us/blogs/derik_whittaker/archive/tags/WinForms/default.aspx

Useful Blog

http://codebetter.com/blogs/david.hayden/archive/2006/10/05/C_2300_-2.0-Iterators-and-Yield-Keyword-_2D00_-Custom-Collection-Enumerators.aspx

IEnumerator Link

http://aliudmilov.wordpress.com/2007/01/31/using-the-keyword-yield-in-c/

IEnumerator Sample + yield Keyword

using System;
using System.Collections.Generic;
using System.Text;
public class List
{
public static IEnumerable Power(int number, int exponent)
{
int counter = 0;
int result = 1;
while (counter++ < exponent)
{
result = result * number;
yield return result;
}
}
static void Main()

{
System.Console.WriteLine("Start ....\n");
foreach (int i in Power(2, 8))
Console.Write("{0} ", i);
System.Console.WriteLine("End ....\n");
}
}