comparison Source/DataAccess/ActualTypeAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2
3 namespace BLToolkit.DataAccess
4 {
5 [JetBrains.Annotations.BaseTypeRequired(typeof(DataAccessor))]
6 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
7 public class ActualTypeAttribute : Attribute
8 {
9 public ActualTypeAttribute(Type baseType, Type actualType)
10 {
11 _baseType = baseType;
12 _actualType = actualType;
13 }
14
15 private readonly Type _baseType;
16 public Type BaseType
17 {
18 get { return _baseType; }
19 }
20
21 private readonly Type _actualType;
22 public Type ActualType
23 {
24 get { return _actualType; }
25 }
26 }
27 }