Пример #1
0
        protected override void OnValidateContent(Validation.ValidationContext validate)
        {
            base.OnValidateContent(validate);

            foreach (var lc in this.GetLogicalChildren())
            {
                lc.ValidateContent(validate);
            }

            if (this._extras is JsonSerializable js)
            {
                js.ValidateContent(validate);
            }

            if (this._extras != null)
            {
                validate.IsJsonSerializable("Extras", this._extras);
            }
        }