........... using MyStrategy_enums; namespace MyStrategy_enums{ public enum XYZ{ X, Y, Z } } .....
case 1:
namespace NinjaTrader.Strategy { /// <summary> /// Enter the description of your strategy here /// </summary> [Description("Enter the description of your strategy here")] public class MyStrategy: Strategy { public enum XYZ{ .... .... } ...................
or even, case 2:
namespace NinjaTrader.Strategy { /// <summary> /// Enter the description of your strategy here /// </summary> [Description("Enter the description of your strategy here")] public class MyStrategy: Strategy { public class MyStrategy_enums{ public enum first{ ..... } public enum second{ ..... } } ................... ///and referring with: MyStrategy_enums.first
why enums using Namespaces are preferred over CASE-1 or CASE-2?
Comment