mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Killed history
This commit is contained in:
24
NadekoBot.Core/Common/Yml/CommentsObjectDescriptor.cs
Normal file
24
NadekoBot.Core/Common/Yml/CommentsObjectDescriptor.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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; } }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user