<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8980734269859237005.post3707313053558991904..comments</id><updated>2011-05-21T03:34:19.741-07:00</updated><category term='Reviews'/><category term='LINQ'/><category term='Visual Studio'/><category term='Windows Vista'/><category term='Misc Ramblings'/><category term='jQuery'/><category term='Architecture'/><category term='Technology'/><category term='CSS'/><category term='Screencast'/><category term='VB.NET'/><category term='Free EBook'/><category term='Tips'/><category term='Azure'/><category term='ASP.NET MVC'/><category term='ASP.NET'/><category term='HTML 5'/><category term='C#'/><category term='Free Learning'/><category term='Regex'/><category term='Product Releases'/><category term='Link List'/><category term='ASP.NET AJAX'/><category term='General'/><category term='WCF'/><category term='Blogging Tools'/><category term='Sharepoint'/><category term='Tools'/><category term='Contests'/><category term='Entity FW'/><category term='JavaScript'/><category term='WPF'/><category term='.NET'/><category term='Silverlight'/><category term='Windows 7'/><title type='text'>Comments on DevCurry: Determine if an object implements IEnumerable of (...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.devcurry.com/feeds/3707313053558991904/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/3707313053558991904/comments/default'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/03/determine-if-object-implements.html'/><author><name>Suprotim Agarwal</name><uri>http://www.blogger.com/profile/08349831623922214390</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_0j4bzarlOBg/TEefNfVYJBI/AAAAAAAABOE/GoGXFIVogfU/S220/Supmvp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8980734269859237005.post-4574432780726638261</id><published>2011-05-21T03:34:19.741-07:00</published><updated>2011-05-21T03:34:19.741-07:00</updated><title type='text'>This code does not work at all.
1. someType.GetTyp...</title><summary type='text'>This code does not work at all.&lt;br /&gt;1. someType.GetType() returns typeof(Type).&lt;br /&gt;2. GetGenericTypeDefinition() is only valid for generic types, it will throw InvalidOpertaionException as soon as it reaches first non-generic interface.&lt;br /&gt;&lt;br /&gt;Here is my solution (C#):&lt;br /&gt;&lt;br /&gt;static bool IsIEnumerableT (Type someType)&lt;br /&gt;{&lt;br /&gt;    return someType.GetInterface (typeof(IEnumerable&amp;lt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/3707313053558991904/comments/default/4574432780726638261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8980734269859237005/3707313053558991904/comments/default/4574432780726638261'/><link rel='alternate' type='text/html' href='http://www.devcurry.com/2009/03/determine-if-object-implements.html?showComment=1305974059741#c4574432780726638261' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.devcurry.com/2009/03/determine-if-object-implements.html' ref='tag:blogger.com,1999:blog-8980734269859237005.post-3707313053558991904' source='http://www.blogger.com/feeds/8980734269859237005/posts/default/3707313053558991904' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-531763026'/></entry></feed>
