E
Edward Diener
In C++ Builder there was a construct called a Set, based on a an
enumeration, where more than one enumerated value could make up the set so
that any combination of enumerated values in an enum could be part of the
Set. It was implemented as a template, and was compatible with the built-in
Set of Object Pascal/Delphi. As an example:
enum SomeEnum
{
Value1,
Value2,
Value3
};
Set<SomeEnum,Value1,Value3> mySet;
and then one had operators/member functions to add, remove, and check
whether a given enumerated value was in the set.
Does the .NET framework have anything like this, which I can use in my MC++
modules and components in a CLS compliant way so that other .NET languages
can interoperate with my construct ?
The closest thing I can think of is a BitArray or BitVector32 class, but the
downside to this is specifying what each bit represents. I am not sure what
is the best CLS way to do the latter. Any information on this is welcome as
I am sure other .NET developers have faced the same problem.
enumeration, where more than one enumerated value could make up the set so
that any combination of enumerated values in an enum could be part of the
Set. It was implemented as a template, and was compatible with the built-in
Set of Object Pascal/Delphi. As an example:
enum SomeEnum
{
Value1,
Value2,
Value3
};
Set<SomeEnum,Value1,Value3> mySet;
and then one had operators/member functions to add, remove, and check
whether a given enumerated value was in the set.
Does the .NET framework have anything like this, which I can use in my MC++
modules and components in a CLS compliant way so that other .NET languages
can interoperate with my construct ?
The closest thing I can think of is a BitArray or BitVector32 class, but the
downside to this is specifying what each bit represents. I am not sure what
is the best CLS way to do the latter. Any information on this is welcome as
I am sure other .NET developers have faced the same problem.