Castle.MonoRail.Framework.TransformFilterAttribute.TransformFilterAttribute C# (CSharp) Method

TransformFilterAttribute() public method

Constructs a TransformFilterAttribute associating the transformfilter type.
public TransformFilterAttribute ( Type transformFilterType ) : System
transformFilterType System.Type The transformfilter implementation
return System
		public TransformFilterAttribute(Type transformFilterType)
		{
			if (!typeof(ITransformFilter).IsAssignableFrom(transformFilterType))
			{
				throw new ArgumentException("The specified type does not implement ITransformFilter");
			}

			if (!typeof(Stream).IsAssignableFrom(transformFilterType))
			{
				throw new ArgumentException("The specified type is no System.IO.Stream type");
			}
						
			this.transformFilterType = transformFilterType;
		}