Archive for January, 2008

Linq is cool.

var types = from type in System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
	let attr = Attribute.GetCustomAttribute(type, typeof(PreferencePageAttribute), true)
	where attr != null
	select new { Attribute = attr as PreferencePageAttribute, Type = type };
Posted on Sunday, January 13th, 2008 in .NET, Code, Szótár | No Comments