C# Creating Class Libraries with Enum

30 pts.
Tags:
C#
Class Library
DLL
Enumeration
Visual Studio 2008
Ok, I'm trying to create a class library that enables me to use a enum. Simple I thought. But the more and more I dig the deeper the rabbit whole goes. I've tried to Substitute the obvious DDD in the public void Main method still no luck. I'm able to compile but my error "is a type which isn't valid is DataObjects.DDD is a 'type', which is not valid in the given context. Maybe someone can correct the error in my ways. Thanks. ///--------------------Class Library Code. public enum DDD : int{ UserCentric = 1, RoleCentric = 2 , TeamCentric = 3, OfficeCentric = 4, LineOfBusinessCentric = 5 } class Document { public void Main(DDD DDD) { switch (DDD) { case DDD.UserCentric: System.Console.WriteLine("UserCentric"); break; case DDD.RoleCentric: Debug.WriteLine("RoleCentric"); break; case DDD.TeamCentric: Debug.WriteLine("TeamCentric"); break; case DDD.OfficeCentric: Debug.WriteLine("OfficeCentric"); break; case DDD.LineOfBusinessCentric: Debug.WriteLine("LineOfBusinessCentric"); break; ; ///------------------------------------------end of class library code. using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string mm; mm = DocumentDataObject.DDD; mm = Label1.Text; } }

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following