C# 잡다한 스킬1




1
2
3
4
5
6
7
8
9
bool isRight;
 
public bool MethodName()
{
    if(isRight)
        return true;
    else
        return false;
}
cs



1
2
3
4
5
6
7
private class class1;
 
//  객체화 되어있지 않다면 실행이 안됨.
public void Method(){
    if(class1 != null)
        // Working!
}
cs

댓글