473,805 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for tool for declarative parameter checks

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 "Declarativ e 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
Nov 16 '05 #1
2 1360
eXtensible C# does what you mention.
http://www.resolvecorp.com/products.htm

version 1.x is free, 2.x costs money.

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Christoph Wienands" <cw*******@sswh iteburs.com> wrote in message
news:e3******** ******@tk2msftn gp13.phx.gbl...
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 "Declarativ e 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

Nov 16 '05 #2
Hi Mike,

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

Christoph
"Michael Mayer [C# MVP]" <mi**@mag37.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
eXtensible C# does what you mention.
http://www.resolvecorp.com/products.htm

version 1.x is free, 2.x costs money.

--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Christoph Wienands" <cw*******@sswh iteburs.com> wrote in message
news:e3******** ******@tk2msftn gp13.phx.gbl...
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 "Declarativ e 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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
2294
by: Martin MOKREJ© | last post by:
Hi, I'm looking for some easy way to do something like include in c or PHP. Imagine I would like to have: cat somefile.py a = 222 b = 111 c = 9
8
2362
by: Sebastian Kerekes | last post by:
Greetings, I'm developing an application that supports multiple languages. In my XSL I use variables to place the text where it belongs to. At the top of the document I include those variables - the included file depends on the language. Atm I'm editing those file manually. Luckily atm it's only two languages I have to work with, but even in this case I forget to add a variable that I added in the other file, forget to use entities .....
6
15658
by: Sarah Haff | last post by:
Hello All, Is it possible to have alternating color font for DropDown/List box in html? I have an FatClient application written in C, and I am trying to webify it. The application uses alternative color fonts in a dropdown/list box. So I was hoping to do the same for the web application.
9
5343
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be (filtered) dependent upon the selection in DDL1. I think this inevitably needs some code, but I'd be happy to be told otherwise! I have some code to handle OnSelectedIndexChanged for DDL1 that sets the FilterExpression associated with the...
1
2586
by: Steven T. Hatton | last post by:
All of the following terms are used in some way to describe where and how a name is relevant to a particular location in a program: visible, declarative region, scope, potential scope, valid, introduced, used, potentially evaluated and accessible. They all seem to have subtle difference in meanings. Any positive contribution to the following will be appreciated. Here is my attempt to make sense of these:
2
1223
by: Tastic | last post by:
Hi, I am working on a search & filter form using about 6 different dropdown boxes, and possibly more to come. Here is what I am trying to acheive; if the user does not specfiy any choice in a ddb then then that particular filter is not applied... I am probably not making a lot of sense here... dd1 = Business Type (accountant/lawyer/restaurant etc) dd2 = Business Category (Service / Price / Product Quality etc) ie what is more...
3
8019
by: Ken Cox [Microsoft MVP] | last post by:
I've been going around and around on this one. I can't believe that it is "by design" as Microsoft says. Here's the situation: In *declarative* syntax, I'm trying to create a default datetime value for a SqlDataSource parameter. (I know how to insert this parameter in code. I want to use declarative markup.) Here's the declarative markup with ???????? indicating where I'm stumped.
1
1543
by: jimenezkrause | last post by:
Hello, I administrate a large number of Oracle databases for my company. Some DBs are easily structured and the staff responsible for keeping them updated are able to use an Oracle client (SQirreL, PLSQL/ Developer, or even MS Access as a client) to directly access Oracle and update their tables (without messing around with integrity etc). Other DBs are too complex in their structure or the staff responsible
9
1077
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Does anyone out there have a simple source control tool that I can use on my PC here at work? My employer does not want to foot the bill for that, saying I can always make a backup in another folder, but I always forget. CVS is good, but it takes a lot of work to get it set up. What would be perfect would be an add-on for Visual Studio that saves all my data, right where I keep it, with an extra folder of changes that I can backup to...
0
10614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10369
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.