Enum Delcarations

G

Guest

I have a public enums declared as below in a project named "mfirstSolution"

Imports ......
Imports .....

Public Enum myEnum1
FirstEntry
SecondEntry
End Enum

Public Class myClass
Private v_EnumValue as myEnum1
Public Property myProperty () as myEnum1
Get
Return v_EnumValue
End Get
Set (ByVal Value as myEnum1
v_EnumValue = Value
End Set
End Class

This works in a standalone solution but when I have another project and add
this project to the that solution, I get a build error stating that "myEnum1"
is Ambiguous in NameSpace "myfirstsolution". Any help would be appreciated.
 
C

Chris Smith

Did you create the enum in both projects? If so, then you most likely need
to create a design that doesn't require you define the enum in both
projects, and is not necessary and, as you seen doesn't really work that
well anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top