B
Brett Romero
I'd like to create one enum that holds webpage name values and
corresponding URL values. For example:
enum webPageFileName
{index = "index.aspx"}
enum webPageName
{index = "index"}
enum webPageNameTitle
{index = "Home Sweet Home"}
enum webPageRelativePath
{index = "index.aspx"}
enum webPageNameAbsoluteURL
{index = "http://www.abc.com/index.aspx"}
But instead of referencing seperate enums, I could reference something
similar to this:
webPageInfo.index.FileName
webPageInfo.index.PageName
webPageInfo.index.Title
webPageInfo.index.RelativePath
webPageInfo.index.AbsoluteURL
Now each webpage is grouped by a common index name within one enum.
WebPageInfo.index for the index.page or WebPageInfo.Contact for the
contact page. It's easy enough to get all the page info in one place
at that point.
This probably can't be done with an enum but needs a static class.
Suggestions?
Thanks,
Brett
corresponding URL values. For example:
enum webPageFileName
{index = "index.aspx"}
enum webPageName
{index = "index"}
enum webPageNameTitle
{index = "Home Sweet Home"}
enum webPageRelativePath
{index = "index.aspx"}
enum webPageNameAbsoluteURL
{index = "http://www.abc.com/index.aspx"}
But instead of referencing seperate enums, I could reference something
similar to this:
webPageInfo.index.FileName
webPageInfo.index.PageName
webPageInfo.index.Title
webPageInfo.index.RelativePath
webPageInfo.index.AbsoluteURL
Now each webpage is grouped by a common index name within one enum.
WebPageInfo.index for the index.page or WebPageInfo.Contact for the
contact page. It's easy enough to get all the page info in one place
at that point.
This probably can't be done with an enum but needs a static class.
Suggestions?
Thanks,
Brett