public void EndWriteRelations(Utf8JsonWriter writer, RelationCollectionWriter relationCollectionWriter)
        {
            this.ValidateEndWrteRelationsState();

            relationCollectionWriter.EndWriteRelationCollection(writer);
            this.state = State.Started;
        }
        public RelationCollectionWriter BeginWriteRelations(Utf8JsonWriter writer, ReadOnlySpan <byte> rel)
        {
            this.ValidateBeginWriteRelationsState();

            this.state = State.WritingRelations;

            return(RelationCollectionWriter.BeginWriteRelationCollection(writer, rel));
        }
        public static RelationCollectionWriter BeginWriteRelationCollection(Utf8JsonWriter writer, ReadOnlySpan <char> rel)
        {
            RelationCollectionWriter result = default;

            writer.WriteStartArray(rel);
            result.state = State.Started;
            return(result);
        }
        public RelationCollectionWriter BeginWriteRelations(Utf8JsonWriter writer, JsonEncodedText rel)
        {
            this.ValidateBeginWriteRelationsState();

            this.state = State.WritingRelations;

            return(RelationCollectionWriter.BeginWriteRelationCollection(writer, rel));
        }
        public static RelationCollectionWriter BeginWriteRelationCollection(Utf8JsonWriter writer, JsonEncodedText rel)
        {
            RelationCollectionWriter result = default;

            writer.WriteStartArray(rel);
            result.state = State.Started;
            return(result);
        }