Why am I getting this error? – Use of unassigned local variable

Error:Use of unassigned local variable 'email'
Use of unassigned local variable 'web'
Use of unassigned local variable 'video'
and so on

Basically I've got a menu which is enclosed within a loop. When a user selects a menu item, processing will happen. One of the menu items should collect values from other menu items and then process them. Basically i'm getting the unassigned local variable error for variables that are processed in one menu item and then required for the final menu item processing.

Any help, very much appreciated. Thanks

by rslists via /r/csharp

Leave a Reply