You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
883 B
35 lines
883 B
#region Using Statements |
|
|
|
using System; |
|
|
|
#endregion |
|
|
|
namespace ArdupilotMega.Attributes |
|
{ |
|
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)] |
|
public 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> |
|
public 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> |
|
public bool IsPrivate |
|
{ |
|
get { return _isPrivate; } |
|
} |
|
|
|
} |
|
}
|
|
|