"IClient"인터페이스를 구현하는 "namespace MS.Client"와 "namespace MS"중 하나에서 "public partial class CustomerDetail"과 같은 이름을 가진 두 개의 클래스가있는 두 개의 네임 스페이스가 있습니다. .Customer "는"ICustomerInfo "인터페이스를 다른 어셈블리에서도 구현합니다. 다른 "네임 스페이스 MS.Applications.View" "네임 스페이스 MS.Client"에 대한 참조가 있지만 "CustomerDetail"클래스를 "네임 스페이스 MS.Applications.View"에서 인스턴스화한다고 가정 할 때 "CustomerDetail"에 액세스하려고합니다. 모든 네임 스페이스의 "CustomerDetail"에 속한 모든 속성이 올바른 것입니까? 하지만 실제로는 작동하지 않았습니다. 어느 누구도이 일에서 나를 도울 수 있습니까? 인터페이스가있는 부분 클래스
namespace MS.Customer
{
public partial class CustomerDetail : ICustomerInfo
{
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
private string address;
public string Address
{
get { return address; }
set { address = value; }
}
}
}
namespace MS.Client
{
public partial class CustomerDetail : IClient
{
private string name;
public string CustName
{
get { return name; }
set { name = value; }
}
private string address;
public string CustAddress
{
get { return address; }
set { address = value; }
}
}
}
중 하나가 내 요약을 이해하지 못할 경우 알려 주시기 바랍니다.
나중에 볼 수 있습니다. 감사 :) – user1853127