|
-
March 16th, 2009, 03:58 AM
#5
Re: forcing value to bool 'true' or 'false' (performance warning)
 Originally Posted by Paul McKenzie
Code:
bool xx = (f.GetMethod ( ) == whatever_you_say_means_true)?true:false;
Regards,
Paul McKenzie
I think this suggestion is spot-on. But assuming the implementors of this bridge object knew what they were doing, I think they were wanting to use bool to represent non-zero enums. So, instead if finding out which enum to match to for all the test classes, I think only this will suffice:
Code:
bool xx = f.GetMethod() != 0;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|