Looking for tool for declarative parameter checks

C

Christoph Wienands

Hello everybody,

a while ago on one of the "big" DotNet websites (like GotDotNet) I stumbled
across a description of a tool that enables developers to work with features
like "Declarative Parameter Checking". I came up with this name but let me
tell you really quick what it was all about.

Let's say you have a method Equals:

public bool Equals(object o1, object o2)
{
...
}

The method requires that both parameters are non-null, otherwise it should
throw an exception. Usually you would manually code that part.
The tool that I am looking for does that automatically. The developer
inserts some attributes right in front of the method and the compiler will
then generate code that does the checking. I think there were even quite
some more features but I can't exactly remember. This tool would fit neatly
together with Unit Tests into a good Software Quality strategy.

As I said, I saw this tool in the "Tools" or "Downloads" section of one of
the bigger DotNet websites but I can't find it anymore. Anybody can help me?

Thanks, Christoph
 
C

Christoph Wienands

Hi Mike,

that's exactly the tool I was looking for. Thanks a lot :)

Christoph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top