File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments