Mercurial > pub > bltoolkit
comparison Source/Validation/FriendlyNameAttribute.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.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 } |