namespace Project
{
public class Converter
{
/**
* 컨버터 등록 관련 기능
*/
// 컨버터 등록 가능한지 검증
public void CanRegister(){
}
// 컨버터 등록
public void Register(){
}
/**
* 컨버팅(변환) 관련 기능
*/
// 컨버팅 가능한지 검증
public bool CanConvert()
{
}
// 문자열에서 값으로 컨버팅 수행
public T ConvertStringToValue(string str)
{
}
// 값에서 문자열로 컨버팅 수행
public string ConvertValueToStirng(T value)
{
}
}
}
namespace Project
{
/**
* 컨버터 등록 관련 기능
*/
public partial class Converter
{
// 컨버터 등록 가능한지 검증
public void CanRegister(){
}
// 컨버터 등록
public void Register(){
}
}
/**
* 컨버팅(변환) 관련 기능
*/
public partial class Converter
{
// 컨버팅 가능한지 검증
public bool CanConvert()
{
}
// 문자열에서 값으로 컨버팅 수행
public T ConvertStringToValue(string str)
{
}
// 값에서 문자열로 컨버팅 수행
public string ConvertValueToStirng(T value)
{
}
}
}
namespace Project
{
/**
* 컨버터 등록 관련 기능
*/
public class Register
{
// 컨버터 등록 가능한지 검증
public void CanRegister(){
}
// 컨버터 등록
public void Register(){
}
}
/**
* 컨버팅(변환) 관련 기능
*/
public class Converter
{
// 컨버팅 가능한지 검증
public bool CanConvert()
{
}
// 문자열에서 값으로 컨버팅 수행
public T ConvertStringToValue(string str)
{
}
// 값에서 문자열로 컨버팅 수행
public string ConvertValueToStirng(T value)
{
}
}
}
최종적으로 둘을 완전히 분리하여서 ISP를 만족할 수 있었음