How would I represent an HSL and an RGB color as a class in C#?
问题 How would I write a class in C# that represents an HSL color and an RGB color? Once I have that, is it possible to add a method that prints out each of the class attributes? I've heard about ToString() , but I'm not sure how to use it. Some sample code would be very useful, as I am a student and trying to learn how to use C#. Thanks! 回答1: People get annoyed when you post "questions" asking others to write code for you. Lots of questions from new users seem to ask for this, and yours even does