How do I use enum values from one class in another?
I have this class:
and am simply trying to set a variable inside of another class to one of these enumerated values:Code:public class class1 { [FlagsAttribute] public enum ContainterTypes : int { CT_OUTLOOK = 0, CT_XML = 1, CT_SDX = 2, CT_SAP = 4 }; }
which obvously doesn't work... I have triedCode:blahblah.SetContainerType(CT_XML);
but no luck there either.Code:blahblah.SetContainerType(class1.ContainterTypes.CT_XML);
I have set a reference to the first class in the second.
what am I missing here?




Reply With Quote