Files
octokit.net/Octokit/Helpers/ParameterAttribute.cs
2015-01-03 09:32:07 -08:00

22 lines
647 B
C#

using System;
namespace Octokit.Internal
{
/// <summary>
/// Indicate to the serializer that this property or value
/// has a different representation when being serialized to JSON
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class ParameterAttribute : Attribute
{
/// <summary>
/// The key to use in place of the property's name
/// </summary>
public string Key { get; set; }
/// <summary>
/// The name to use in place of the enum's value
/// </summary>
public string Value { get; set; }
}
}