<?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-4472951086604612395.post8712041520777912670..comments</id><updated>2010-04-13T15:43:33.710+02:00</updated><category term='Crystal Reports'/><category term='VS 2008'/><category term='Visual Studio'/><category term='Expression Web 2'/><category term='Virtual PC'/><category term='jQuery'/><category term='CSS'/><category term='Outlook'/><category term='SQL Server'/><category term='SharePoint'/><category term='VS 2010'/><category term='Tips Tricks'/><category term='Workflow'/><category term='SharePoint 2010'/><category term='Oracle'/><category term='Apple'/><category term='Fun'/><category term='Blogger'/><category term='Word'/><category term='BlogEngine.Net'/><category term='Syntax Highlighting'/><category term='WSS'/><category term='LightBox'/><category term='Templates'/><category term='C#'/><category term='Themes'/><category term='Browsers'/><category term='Access'/><category term='VMware'/><category term='Linq'/><category term='Microsoft Office System'/><category term='Operating Systems'/><category term='HTML'/><category term='CMS'/><category term='Tools'/><category term='MOSS'/><category term='IIS7'/><category term='Virtualization'/><category term='Umbraco'/><category term='iMac'/><category term='Code Samples'/><category term='InfoPath'/><category term='.NET'/><category term='Excel'/><category term='Windows 7'/><title type='text'>Comments on Yet Another IT Blog: Format file size (C#)</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.vanmeeuwen-online.nl/feeds/8712041520777912670/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default'/><link rel='alternate' type='text/html' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html'/><author><name>Robje</name><uri>http://www.blogger.com/profile/09140866926069042012</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='23' height='32' src='http://4.bp.blogspot.com/-GlFAmKMK51w/TbiEnP5t5gI/AAAAAAAAAYU/9YXnzpIP0XI/s220/JustMe.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4472951086604612395.post-2863142073666575992</id><published>2010-04-13T15:43:33.695+02:00</published><updated>2010-04-13T15:43:33.695+02:00</updated><title type='text'>You could optimize this code a little:



 if (siz...</title><content type='html'>You could optimize this code a little:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; if (size &amp;lt; KB)&lt;br /&gt; {&lt;br /&gt;  return string.Format(&amp;quot;{0} bytes&amp;quot;, size); &lt;br /&gt; }&lt;br /&gt; else if (size &amp;lt; MB)&lt;br /&gt; {&lt;br /&gt;  return string.Format(&amp;quot;{0} KB&amp;quot;, (size / KB)); &lt;br /&gt; }&lt;br /&gt; else if (size &amp;lt; GB)&lt;br /&gt; {&lt;br /&gt;  return string.Format(&amp;quot;{0:0.00} MB&amp;quot;, (size / MB));&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;  return string.Format(&amp;quot;{0:0.00} GB&amp;quot;, (size / GB)); &lt;br /&gt; }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/2863142073666575992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/2863142073666575992'/><link rel='alternate' type='text/html' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html?showComment=1271166213695#c2863142073666575992' title=''/><author><name>Frank</name><uri>http://www.blogger.com/profile/01671244514753080091</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='32' height='30' src='http://bp1.blogger.com/_lEGrjlfeFMU/SJf1HYl74OI/AAAAAAAAAAM/B-7tsTJUES4/S220/g2b.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html' ref='tag:blogger.com,1999:blog-4472951086604612395.post-8712041520777912670' source='http://www.blogger.com/feeds/4472951086604612395/posts/default/8712041520777912670' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-223726177'/></entry><entry><id>tag:blogger.com,1999:blog-4472951086604612395.post-1507065724482981496</id><published>2010-04-13T15:40:27.179+02:00</published><updated>2010-04-13T15:40:27.179+02:00</updated><title type='text'>Haha, I was expecting a comment like this from you...</title><content type='html'>Haha, I was expecting a comment like this from you :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/1507065724482981496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/1507065724482981496'/><link rel='alternate' type='text/html' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html?showComment=1271166027179#c1507065724482981496' title=''/><author><name>Robje</name><uri>http://www.blogger.com/profile/09140866926069042012</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='26' height='32' src='http://1.bp.blogspot.com/_XAb52IpycBU/SPM8ZNaP5KI/AAAAAAAAAFE/lUWPRbjnq5c/S220/Robje.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html' ref='tag:blogger.com,1999:blog-4472951086604612395.post-8712041520777912670' source='http://www.blogger.com/feeds/4472951086604612395/posts/default/8712041520777912670' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-431023094'/></entry><entry><id>tag:blogger.com,1999:blog-4472951086604612395.post-4431050694637160112</id><published>2010-04-13T15:30:58.266+02:00</published><updated>2010-04-13T15:30:58.266+02:00</updated><title type='text'>nice to see you write c#
Welcome to our c#lub!</title><content type='html'>nice to see you write c#&lt;br /&gt;Welcome to our c#lub!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/4431050694637160112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4472951086604612395/8712041520777912670/comments/default/4431050694637160112'/><link rel='alternate' type='text/html' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html?showComment=1271165458266#c4431050694637160112' title=''/><author><name>Frank</name><uri>http://www.blogger.com/profile/01671244514753080091</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='32' height='30' src='http://bp1.blogger.com/_lEGrjlfeFMU/SJf1HYl74OI/AAAAAAAAAAM/B-7tsTJUES4/S220/g2b.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vanmeeuwen-online.nl/2010/04/format-file-size-c.html' ref='tag:blogger.com,1999:blog-4472951086604612395.post-8712041520777912670' source='http://www.blogger.com/feeds/4472951086604612395/posts/default/8712041520777912670' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-223726177'/></entry></feed>
