Plane.Sdk3/PlaneGcsSdk_Shared/TaskTools/Attributes/PrivateAttribute.cs
2017-02-27 02:02:19 +08:00

36 lines
885 B
C#

#region Using Statements
using System;
#endregion
namespace TaskTools.Attributes
{
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
internal sealed class PrivateAttribute : Attribute
{
private readonly bool _isPrivate;
/// <summary>
/// Initializes a new instance of the <see cref="PrivateAttribute"/> class.
/// </summary>
/// <param name="isPrivate">if set to <c>true</c> [is private].</param>
internal PrivateAttribute(bool isPrivate)
{
_isPrivate = isPrivate;
}
/// <summary>
/// Gets a value indicating whether this instance is private.
/// </summary>
/// <value>
/// <c>true</c> if this instance is private; otherwise, <c>false</c>.
/// </value>
internal bool IsPrivate
{
get { return _isPrivate; }
}
}
}