By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,201 Members | 937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,201 IT Pros & Developers. It's quick & easy.

Problem with Shared Assembly and Enumerated Type

P: n/a
Hello all, and thanks for taking a look at this.

First off, the project I am working on is a server/client
application that contains a shared assembly of common
classes between the two components. One of these shared
items is a bunch of commonly used types. These included
hard-coded paths, extension types, and some common
enumerated values. This 'types.cs' file does not
implement the MarshalByRefObject.

The problem I am having generates this error:
"The variable '<variable>' is either undeclared or was
never assigned."
The <variable> is a basic enumerated value and is listed
as a public enum. The problem is that this value works
well every other place it is used in the application, but
in the frmMain (a windows form that is basically the front
end of the application), Intellisense throws that warning
at me after I build and sets all references to that
variable to the first item in the enumerated list.

If anyone needs more information, don't hesitate to ask
and I'll get on it as best I can. At one point, I thought
the namespaces were giving me troubles and so I made them
a bit more complex (i.e. longer) to prevent some bleeding
over from other generically named namespaces, but that
wasn't the case at all.

Thanks a bunch,
Brandon.

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.