Replies: 1 comment
-
If you use p.s. If you have access to GitHub copilot or another generative AI solution you could probably ask those tools for help and information. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My console application reads a colour from a config file. Is either a string like "#AABBCCFF" or "auto", in which case my app chooses the colour automatically:
This codes compiles and works, although the else-path is somewhat crudely initiating perfColor anew.
As one can draw from the code, the result of
onePixel.GetPixels().First().ToColor()
is of type IMagickColor such that I explicity have to convert it to MagickColor.
This duality of ISomething vs. Something appears in many contexts, and I admit that the whole point of it escapes me ... I couldn't find a ready-made explanation anywhere and it's probably due to my lack of understanding of C# concepts. So could you (Dirk) point me into the right direction?
Beta Was this translation helpful? Give feedback.
All reactions