comparison Source/Aspects/NotNullAttribute.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 using BLToolkit.TypeBuilder.Builders;
4
5 namespace BLToolkit.Aspects
6 {
7 /// <summary>
8 /// http://www.bltoolkit.net/Doc/Aspects/index.htm
9 /// </summary>
10 [AttributeUsage(AttributeTargets.Parameter)]
11 public sealed class NotNullAttribute : AbstractTypeBuilderAttribute
12 {
13 public NotNullAttribute()
14 {
15 }
16
17 public NotNullAttribute(string message)
18 {
19 _message = message;
20 }
21
22 private string _message;
23 public string Message
24 {
25 get { return _message; }
26 set { _message = value; }
27 }
28
29 public override IAbstractTypeBuilder TypeBuilder
30 {
31 get { return new Builders.NotNullAspectBuilder(_message); }
32 }
33 }
34 }