G
Guest
Hello,
I would like to create an enum that can be used accross all the classes in
my windows solution. How can I do this.
TROUBLESHOOTING
I created a new .cs file in my windows solution. I call it Enumerations.cs.
In this file I have written the following...
using System;
using System.Collections.Generic;
using System.Text;
namespace PatternsUsingGIS
{
public enum GeodatabaseTypes
{
PersonalGeodatabase,
FileGeodatabase,
SDEGeodatabase
}
}
I want to use this in another class (.cs) file. For example I want to type:
//method call
public void SayType(enum GeodatabaseTypes)
{
//do something
}
How do I do this?
I would like to create an enum that can be used accross all the classes in
my windows solution. How can I do this.
TROUBLESHOOTING
I created a new .cs file in my windows solution. I call it Enumerations.cs.
In this file I have written the following...
using System;
using System.Collections.Generic;
using System.Text;
namespace PatternsUsingGIS
{
public enum GeodatabaseTypes
{
PersonalGeodatabase,
FileGeodatabase,
SDEGeodatabase
}
}
I want to use this in another class (.cs) file. For example I want to type:
//method call
public void SayType(enum GeodatabaseTypes)
{
//do something
}
How do I do this?