<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx</link><description>Eric points out some of the new syntax changes we&amp;#8217;ve made in C# 2.0 for FCLC compliance . These changes could break some of your existing code so you should make sure to verify 1.1 code when moving to VS 2005 (Whidbey). You should also be aware</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105675</link><pubDate>Thu, 01 Apr 2004 16:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105675</guid><dc:creator>Brad Williams</dc:creator><description>Wouldn't EstimateFine for EN-US just be:&lt;br&gt;&lt;br&gt;float EstimateFine(string str)&lt;br&gt;{&lt;br&gt;   if (IsIndecent(str))&lt;br&gt;      return 500000.0;&lt;br&gt;   else&lt;br&gt;      return 0.0;&lt;br&gt;}&lt;br&gt;&lt;br&gt;Guess it can't be hard coded though (unless there's a constitutional amendment), so this better activate a web service instead, maybe us.gov can host?</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105683</link><pubDate>Thu, 01 Apr 2004 16:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105683</guid><dc:creator>KCJacob</dc:creator><description>Nice one Dan! You almost had me there. Then I remembered the date.</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105690</link><pubDate>Thu, 01 Apr 2004 16:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105690</guid><dc:creator>joe</dc:creator><description>Why is this a part of the string class?  Isn't the string class heavy enough as it is?  What's the point of namespaces if they aren't going to be used properly?&lt;br&gt;&lt;br&gt;It should be something like...&lt;br&gt;&lt;br&gt;Microsoft.Utils.ContentFilter.IsDecent or something like that.&lt;br&gt;&lt;br&gt;/me groans</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105693</link><pubDate>Thu, 01 Apr 2004 16:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105693</guid><dc:creator>AndrewSeven</dc:creator><description>Well from what I see, a TrimIndecent or equivalent method is absolutely required.&lt;br&gt;&lt;br&gt;I would also recommed naming the exception IndecencyException; it is a good exception and should not have negative name.&lt;br&gt;&lt;br&gt;I hope that there are compile time checks so we don't have to wait until runtime IndecencyExceptions are thrown for readonly and const strings.&lt;br&gt;&lt;br&gt;It is important not to overlook enums, as they are often exposed to end users.&lt;br&gt;&lt;br&gt;Also numbers, what about 666?</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105708</link><pubDate>Thu, 01 Apr 2004 16:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105708</guid><dc:creator>Wallym</dc:creator><description>Which namespace are these changes going into?&lt;br&gt;&lt;br&gt;System.Stern.Howard.&lt;br&gt;System.LoveSponge.Buba.&lt;br&gt;System.ManCow.&lt;br&gt;System.Jackson.Janet&lt;br&gt;&lt;br&gt;Wally</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105735</link><pubDate>Thu, 01 Apr 2004 17:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105735</guid><dc:creator>cmalpeli</dc:creator><description>nice one Dan! LOL!</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#105749</link><pubDate>Thu, 01 Apr 2004 17:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:105749</guid><dc:creator>Majik</dc:creator><description>If you're going to have an IsDirty() method, you need to also use the System.Jackson.Michael namespace.&lt;br&gt;&lt;br&gt;Also, it's Bubba has two b's... not sure how that compiled.  :P</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106124</link><pubDate>Fri, 02 Apr 2004 04:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106124</guid><dc:creator>Luke</dc:creator><description>public boolean IsIndecent() &lt;br&gt;{ &lt;br&gt;    return IndexOf(&amp;quot;java&amp;quot;) != -1;&lt;br&gt;} &lt;br&gt;</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106199</link><pubDate>Fri, 02 Apr 2004 07:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106199</guid><dc:creator>Leeor</dc:creator><description>rofl!  Great one! :)</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106283</link><pubDate>Fri, 02 Apr 2004 11:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106283</guid><dc:creator>icelava</dc:creator><description>using System.Fool;</description></item><item><title>Robert Scoble</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106427</link><pubDate>Fri, 02 Apr 2004 14:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106427</guid><dc:creator>TrackBack</dc:creator><description>Robert Scoble</description></item><item><title>Changes to the C# language</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106670</link><pubDate>Fri, 02 Apr 2004 22:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106670</guid><dc:creator>michaelakers.net</dc:creator><description>Microsoft Developer Dan Fernandez reports on the future of the C# language: System.String To check whether a string contains indecent content, developers can now call the IsIndecent method which returns true or false if the string is indecent. Source: iBLOGthere4iM...</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#106698</link><pubDate>Fri, 02 Apr 2004 20:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106698</guid><dc:creator>David Weller</dc:creator><description>I noticed that Eric took down his post :-)</description></item><item><title>re: Changes to C# and .NET Framework</title><link>http://blogs.msdn.com/danielfe/archive/2004/04/01/105653.aspx#186851</link><pubDate>Sun, 18 Jul 2004 17:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:186851</guid><dc:creator>Robert</dc:creator><description>Incredible idea an integrated text filtering utility is long overdue. I don't think it belongs in the string class. Also there should be a way to abstract and updatethe data.&lt;br&gt;&lt;br&gt;Especially because it should have room to grow and become more robust - like localization,  exclude ContainsEmailAddress(), ContainsUrl(), HasSpellErrors(), SpellErrorCount, SpellErrorPercentage, ContainsSpamWords(),  ContainsSpamIPs,&lt;br&gt;&lt;br&gt;For example, I have been working on a home grown multi-lingual utility like this. I have been bitching all the way through that something like this is not already out there and set as a platform to customize and improve by a whole community.&lt;br&gt;&lt;br&gt;For example a poster to a French forum who says he posted in French say 1000 characters. If average word size in French is 5 that is 200 words. A simple realtime filter can be to run a string against a spell-checker's vocabulary and return 140 spelling mistakes or 70% of all words have a typo. &lt;br&gt;&lt;br&gt;if(SpellErrorPercent&amp;gt;50){ String.IsWrongLanguage;&lt;br&gt;Response.Write(&amp;quot;Ce n'est pas fran&amp;#231;ais&amp;quot;)&lt;br&gt;   }&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; </description></item></channel></rss>