forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaceAttribute.cs
More file actions
26 lines (24 loc) · 846 Bytes
/
InterfaceAttribute.cs
File metadata and controls
26 lines (24 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Device.Model
{
/// <summary>
/// Interface attribute.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public class InterfaceAttribute : Attribute
{
/// <summary>
/// Gets display name of the interface.
/// </summary>
public string DisplayName { get; }
/// <summary>
/// Initializes a new instance of the <see cref="InterfaceAttribute" /> class.
/// </summary>
/// <param name="displayName">Display name of the interface.</param>
public InterfaceAttribute(string displayName)
{
DisplayName = displayName;
}
}
}