view Source/TypeBuilder/RefCursorAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line source

using System;
using System.Reflection;

namespace BLToolkit.TypeBuilder
{
	[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	public class RefCursorAttribute : Attribute
	{
	}

	public static class RefCursorAttributeHelpers
	{
		public static bool IsRefCursor(this ParameterInfo pi)
		{
			return pi.GetCustomAttributes(typeof(RefCursorAttribute), false).Length > 0;
		}
	}
}