1

I have these Delphi types:

type Color = (Red, Green,Blue);
type Colors = set of Color;

then Colors is used as a property type in other types

I am trying to convert this to C#. My attempt:

 public enum Color
    {
    Red, Green,Blue
    }

public class Colors
{
  public Color[] CColor;
}

I was wondering if there's a better equivalent way.

Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374

0 Answers0