CSharpFeeds - All your C# feeds in one place.

Monday, May 17, 2010

Don’t Throw Duplicate Exceptions

by ssmith via Blog on 5/17/2010 7:28:57 PM

In your code, you’ll sometimes have write code that validates input using a variety of checks.  Assuming you haven’t embraced AOP and done everything with attributes, it’s likely that your defensive coding is going to look something like this: public void Foo(SomeClass someArgument) { if(someArgument == null) { throw new InvalidArgumentException("someArgument");

...

[ read more ]

Optimizing Regular Expression Performance, Part I: Working with the Regex Class and Regex Objects [Ron Petrusha]

by BCLTeam via BCL Team Blog on 5/17/2010 1:00:00 PM

The .NET Framework's regular expression implementation is a traditional Nondeterministic Finite Automaton (NFA) engine. Perhaps the most significant feature of NFA engines is that they place the responsibility for crafting efficient, high-performance regular expressions on the developer. (For more information about the .NET Framework's implementation of an NFA engine, see Details of Regular Expression Behavior in the MSDN Library.) With their support for such features as backreferences and backt ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us