#nullable disable using YamlDotNet.Core; using YamlDotNet.Serialization; namespace NadekoBot.Common.Yml; public sealed class CommentsObjectDescriptor : IObjectDescriptor { public string Comment { get; } public object Value => _innerDescriptor.Value; public Type Type => _innerDescriptor.Type; public Type StaticType => _innerDescriptor.StaticType; public ScalarStyle ScalarStyle => _innerDescriptor.ScalarStyle; private readonly IObjectDescriptor _innerDescriptor; public CommentsObjectDescriptor(IObjectDescriptor innerDescriptor, string comment) { _innerDescriptor = innerDescriptor; Comment = comment; } }