Mercurial > pub > bltoolkit
annotate Source/TypeBuilder/RefCursorAttribute.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
| author | cin |
|---|---|
| date | Fri, 22 Aug 2014 17:34:46 +0400 |
| parents | f990fcb411a9 |
| children |
| rev | line source |
|---|---|
| 0 | 1 using System; |
| 2 using System.Reflection; | |
| 3 | |
| 4 namespace BLToolkit.TypeBuilder | |
| 5 { | |
| 6 [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)] | |
| 7 public class RefCursorAttribute : Attribute | |
| 8 { | |
| 9 } | |
| 10 | |
| 11 public static class RefCursorAttributeHelpers | |
| 12 { | |
| 13 public static bool IsRefCursor(this ParameterInfo pi) | |
| 14 { | |
| 15 return pi.GetCustomAttributes(typeof(RefCursorAttribute), false).Length > 0; | |
| 16 } | |
| 17 } | |
| 18 } |
