namespace Chernobyl.Utility { /// /// An interface for doing conversions from one type /// to another. This can be used in generic code /// to allow for conversions that otherwise could /// not be done. /// public interface IConverter { /// /// Converts the FirstType to the SecondType. /// /// The FirstType to convert to the SecondType. /// The converted value. SecondType To(FirstType first); /// /// Converts the SecondType to the FirstType. /// /// The SecondType to convert to the SecondType. /// The converted value. FirstType From(SecondType second); } }