0
안녕 얘들 아 내가 예를 들어, 방법의 순서가있는 경우 나 하나 개의 질문,전달 parammeters
있습니다
parammeter "httpContext.Current를 사용하여 할 수있는 가장 좋은 방법은, 얼마나Main()
{
Method1();
}
Method1()
{
Method2();
}
Method2()
{
Method3();
}
Method3()
{
ObtainsUserPermission(httpContext.Current.User.Name);
}
. User.Name "마지막 Method3, 또는 각 메서드에서 매개 변수를 통해 전달? 좋아요 :
Main()
{
Method1(httpContext.Current.User.Name);
}
Method1(string name)
{
Method2(name);
}
Method2(string name)
{
Method3(name);
}
Method3(string name)
{
ObtainsUserPermission(name);
}
감사합니다.
감사합니다. 좋은 조언 – Tarlak