Re: Assertion on Type conversion
- From: arbabi@xxxxxxxxx
- Date: 18 Apr 2005 21:36:26 -0700
Dave, thanks for the reply.
1- I didn't explain my problem clearly.
2- As you suggested CustomType.Parse has its own exception
3- I am *expecting* that conversion of "someString" to CustomType is
always true.
*post-condition assertion in Design-by-Contract is what I am looking
for*
As you already mentioned all the assertions are checked during the
debug mode, so I was looking for some kind of code that help me to
eliminate the try-catch statement by using an Assert statement.
BTW, if I could kust use "as" statement I could accomplish this task.
.
- Follow-Ups:
- Re: Assertion on Type conversion
- From: Dave
- Re: Assertion on Type conversion
- References:
- Assertion on Type conversion
- From: arbabi
- Re: Assertion on Type conversion
- From: Dave
- Assertion on Type conversion
- Prev by Date: Re: New Page using Redirect?
- Next by Date: sort DataRowCollection
- Previous by thread: Re: Assertion on Type conversion
- Next by thread: Re: Assertion on Type conversion
- Index(es):
Relevant Pages
|