M
MarkusR
Good day, bare with me while I probably ask a very novice question...
I have multiple projects that use the same constants. I want to create
a common file they can share.
Is this the best way to do it:
using System;
namespace myconsts
{
class orderconsts
{
public const int ORDER_STATUS_HOLD = 1;
public const int ORDER_STATUS_ERROR = 2;
public const int ORDER_STATUS_READYTOSHIP = 3;
public const int ORDER_STATUS_PACKAGED = 4;
public const int ORDER_STATUS_SHIPPED = 5;
public const int ORDER_STATUS_VOIDED = 6;
}
}
and access it using orderconsts.ORDER_STATUS_HOLD
-Markus_R
I have multiple projects that use the same constants. I want to create
a common file they can share.
Is this the best way to do it:
using System;
namespace myconsts
{
class orderconsts
{
public const int ORDER_STATUS_HOLD = 1;
public const int ORDER_STATUS_ERROR = 2;
public const int ORDER_STATUS_READYTOSHIP = 3;
public const int ORDER_STATUS_PACKAGED = 4;
public const int ORDER_STATUS_SHIPPED = 5;
public const int ORDER_STATUS_VOIDED = 6;
}
}
and access it using orderconsts.ORDER_STATUS_HOLD
-Markus_R