1
난 클래스를 빌드하고 아래의 클라이언트 프로그램에서이를 참조했으나 컴파일러는 내 메소드의 정규화 된 이름을 원한다. C# Net 클래스 참조 클래스 라이브러리 : 공용 클래스를 완전히 정규화해야하는 이유는 무엇입니까?
// this doesn't compile because it does not recognize the Decrypt method
using PGPEncryptDecrypt.Helpers.PGP;
namespace TestComInterOpPGP
{
class Program
{
static void Main(string[] args)
{
PGPEncryptDecrypt.Decrypt(@"C:\Users\blah.pgp",
@"C:\Users\secring.gpg",
"pwd",
@"C:\Users\out.txt");
}
}
}
완전히
// this does compile
using PGPEncryptDecrypt.Helpers.PGP;
namespace TestComInterOpPGP
{
class Program
{
static void Main(string[] args)
{
PGPEncryptDecrypt.Helpers.PGP.PGPEncryptDecrypt.Decrypt(@"C:\Users\blah.pgp",
@"C:\Users\secring.gpg",
"pwd",
@"C:\Users\out.txt");
}
}
}