21 lines
421 B
C#
21 lines
421 B
C#
using System;
|
|
|
|
namespace RedditSharp
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
internal class RedditAPINameAttribute : Attribute
|
|
{
|
|
internal string Name { get; private set; }
|
|
|
|
internal RedditAPINameAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
}
|
|
}
|