Skip to content

Instantly share code, notes, and snippets.

@jesuslpm
Created May 4, 2020 08:35
Show Gist options
  • Save jesuslpm/c15d8f0b1e698f5ebd2b01b2d7a6bd34 to your computer and use it in GitHub Desktop.
Save jesuslpm/c15d8f0b1e698f5ebd2b01b2d7a6bd34 to your computer and use it in GitHub Desktop.
List of ThreeColorSet
using System;
using System.Collections.Generic;
using System.Drawing;
namespace ConsoleApp1
{
public class ThreeColorSet
{
public Color FirstColor { get; set; }
public Color SecondColor { get; set; }
public Color ThirdColor { get; set; }
}
public class MyClass
{
public List<ThreeColorSet> GetColorSets()
{
return new List<ThreeColorSet>
{
new ThreeColorSet
{
FirstColor = Color.AliceBlue,
SecondColor = Color.Azure,
ThirdColor = Color.Aquamarine
},
new ThreeColorSet
{
FirstColor = Color.Red,
SecondColor = Color.Green,
ThirdColor = Color.Blue
}
};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment