Eddie Lascu <[EMAIL PROTECTED]> wrote:

>       static void ChangeToState1(out MyStateEnum enState)
>       {

Because the parameter is 'out' rather than 'ref', it is not definitively
assigned. It could have any value, so the flow analysis of the C#
compiler prevents you from reading its value - for your own safety.

> Obviously, I need to use 'out' parameters, because enumerations are value

Use 'ref' instead.

-- Barry

-- 
http://barrkel.blogspot.com/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to