Files
OxyPlot/Source/Examples/ExampleLibrary/Attributes/ExamplesAttribute.cs
2023-09-02 09:24:59 +02:00

34 lines
1.1 KiB
C#

// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ExamplesAttribute.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExampleLibrary
{
using System;
/// <summary>
/// Specifies the category for a class containing examples.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class ExamplesAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="ExamplesAttribute"/> class.
/// </summary>
/// <param name="category">The category.</param>
public ExamplesAttribute(string category = null)
{
this.Category = category;
}
/// <summary>
/// Gets the category.
/// </summary>
/// <value>
/// The category.
/// </value>
public string Category { get; private set; }
}
}