Skip to content

Commit 85097aa

Browse files
author
James Forshaw
committed
Made SDKName public.
1 parent b3aa34c commit 85097aa

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

NtApiDotNet/Utilities/Reflection/SDKNameAttribute.cs

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,25 @@
1515
using System;
1616

1717
namespace NtApiDotNet.Utilities.Reflection
18-
{
19-
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
20-
internal sealed class SDKNameAttribute : Attribute
21-
{
22-
public string Name { get; }
23-
public SDKNameAttribute(string name)
24-
{
25-
Name = name;
26-
}
18+
{
19+
/// <summary>
20+
/// Attribute to apply to a enum or a structure to indicate the original SDK name.
21+
/// </summary>
22+
/// <remarks>This is only used when formatting the value.</remarks>
23+
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
24+
public sealed class SDKNameAttribute : Attribute
25+
{
26+
/// <summary>
27+
/// The SDK name associated with this meta-data.
28+
/// </summary>
29+
public string Name { get; }
30+
/// <summary>
31+
/// Constructor.
32+
/// </summary>
33+
/// <param name="name">The SDK name associated with this meta-data.</param>
34+
public SDKNameAttribute(string name)
35+
{
36+
Name = name;
37+
}
2738
}
2839
}

0 commit comments

Comments
 (0)