annotate Source/Validation/FriendlyNameAttribute.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author |
cin |
date |
Fri, 28 Mar 2014 01:04:56 +0400 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Validation
|
|
4 {
|
|
5 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)]
|
|
6 public class FriendlyNameAttribute : Attribute
|
|
7 {
|
|
8 public FriendlyNameAttribute(string name)
|
|
9 {
|
|
10 _name = name;
|
|
11 }
|
|
12
|
|
13 private readonly string _name;
|
|
14 public string Name
|
|
15 {
|
|
16 get { return _name; }
|
|
17 }
|
|
18 }
|
|
19 }
|