namespace Chernobyl.Creation
{
///
/// Upcasts the result from a
/// to a
/// result.
///
/// The type of the 1.
/// The type of from result.
/// The type of to result.
public class ResultUpcastFactory
: ResultConversionFactory
where TFromResult : TToResult
{
///
/// Initializes a new instance of the
/// class.
///
/// The instance whose result is to be converted.
public ResultUpcastFactory(IFactory fromFactory)
: base(fromFactory, result => result)
{ }
}
}