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;
}