Пример #1
0
        public override Dictionary <string, object> toJsonMap(DiagnosticsSerializationDelegate _delegate)
        {
            Dictionary <string, object> json = base.toJsonMap(_delegate);

            if (value != null)
            {
                json["valueProperties"] = new Dictionary <string, object>()
                {
                    { "codePoint", value.codePoint },
                };
            }
            return(json);
        }
Пример #2
0
        public override Dictionary <string, object> toJsonMap(DiagnosticsSerializationDelegate Delegate)
        {
            Dictionary <string, object> json = base.toJsonMap(Delegate);

            if (value != null)
            {
                json["valueProperties"] = new Dictionary <string, object> {
                    { "red", valueT.red },
                    { "green", valueT.green },
                    { "blue", valueT.blue },
                    { "alpha", valueT.alpha }
                };
            }

            return(json);
        }