コード例 #1
0
        protected override void OnValidateReferences(ValidationContext result)
        {
            result = result.GetContext(this);

            base.OnValidateReferences(result);

            result.CheckIsInRange(nameof(Count), _count, _countMinimum, int.MaxValue);
            result.CheckSchemaIsDefined("Indices", _indices);
            result.CheckSchemaIsDefined("Values", _values);

            _indices?.ValidateReferences(result);
            _values?.ValidateReferences(result);
        }