declare code as side-effects free using microsoft code contracts -


is there way declare method side-effects free using microsoft code contracts (.net 4)?

the [pure] attribute might you're looking for. attach method , code contracts assume doesn't involve state changes. note doesn't enforce or check anything, tells system make assumption, it's make sure you're using appropriately.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -