Click or drag to resize

XColor Structure

A struct to represent a color in a well-behaved way.
Inheritance Hierarchy
SystemObject
  SystemValueType
    RCS.Carbon.SharedXColor

Namespace: RCS.Carbon.Shared
Assembly: RCS.Carbon.Shared (in RCS.Carbon.Shared.dll) Version: 9.0.12
Syntax
C#
[TypeConverterAttribute("RCS.Carbon.Shared.XColorConverter")]
public struct XColor : IEquatable<XColor>
Remarks
Note that the TypeConverter attribute on the struct uses the string name of the converter class instead of the usual typeof(name) syntax. During Jupyter notebook testing it was found that the typeof silently failed to resolve the converter and serializing this struct in proeprties would crash. Switch to the string constructor fixed the problem. Only one web search result was found to mention this: https://stackoverflow.com/questions/26109228/typedescriptor-getconverter-doesnt-return-my-converter/26115666#26115666
See Also