You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
875 B
23 lines
875 B
namespace MultiTerm.Protocols;
|
|
|
|
/// <summary>
|
|
/// Interface for a converter that converts a facade type into the equivalent of the related software library.
|
|
/// </summary>
|
|
/// <typeparam name="T_local">type of the local class</typeparam>
|
|
/// <typeparam name="T_library">type of the library class</typeparam>
|
|
internal interface ILibraryEquivalentConverter<T_local, T_library>
|
|
{
|
|
/// <summary>
|
|
/// Convert the object to the library type.
|
|
/// </summary>
|
|
/// <param name="obj">object of local class</param>
|
|
/// <returns>object of class within library</returns>
|
|
T_library ConvertToLibraryType(T_local obj);
|
|
|
|
/// <summary>
|
|
/// Convert the object to the local type.
|
|
/// </summary>
|
|
/// <param name="obj">object of class within library</param>
|
|
/// <returns>object of local class</returns>
|
|
T_local ConvertToLocalType(T_library obj);
|
|
}
|
|
|