Skip to content

Commit 4be8113

Browse files
aacuevasjonnew
authored andcommitted
Add missing source file
1 parent 2b04466 commit 4be8113

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace OpenEphys.Onix1
8+
{
9+
/// <summary>
10+
/// Specifies a device class as equivalent to another for data production
11+
/// </summary>
12+
/// <remarks>
13+
/// This attribute must be used on the static classes that specify
14+
/// the device IDs and name converters to mark it as equivalent to
15+
/// another.
16+
///
17+
/// This will be used only for data production and name converters
18+
///
19+
/// The method <see cref="ContextHelper.CheckDeviceType(Type, Type)"/>
20+
/// can be used to check for type or equivalent type matching
21+
/// </remarks>
22+
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
23+
public sealed class EquivalentDataSource : Attribute
24+
{
25+
/// <summary>
26+
/// The original type the tagged class is equivalent to
27+
/// </summary>
28+
public Type BaseType { get; }
29+
30+
public EquivalentDataSource(Type baseType)
31+
{
32+
BaseType = baseType;
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)