mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 01:08:26 -04:00
25 lines
804 B
C#
25 lines
804 B
C#
using System;
|
|
using YamlDotNet.Core;
|
|
using YamlDotNet.Serialization;
|
|
|
|
namespace NadekoBot.Common.Yml
|
|
{
|
|
public sealed class CommentsObjectDescriptor : IObjectDescriptor
|
|
{
|
|
private readonly IObjectDescriptor innerDescriptor;
|
|
|
|
public CommentsObjectDescriptor(IObjectDescriptor innerDescriptor, string comment)
|
|
{
|
|
this.innerDescriptor = innerDescriptor;
|
|
this.Comment = comment;
|
|
}
|
|
|
|
public string Comment { get; private set; }
|
|
|
|
public object Value { get { return innerDescriptor.Value; } }
|
|
public Type Type { get { return innerDescriptor.Type; } }
|
|
public Type StaticType { get { return innerDescriptor.StaticType; } }
|
|
public ScalarStyle ScalarStyle { get { return innerDescriptor.ScalarStyle; } }
|
|
}
|
|
}
|