|
|
#1 |
|
Соучастник
|
Скажите пожалуйста, как реализовать подобную конструкцию в x++?
Java code: Код:
public class Class1{
private static Class1 inst=null;
private void initInstance(){
//initialization code
}
public static Class1 getInstance(){
if(inst==null)initInstance();
return inst;
}
}
//somewhere
Class1 cl = Class1::getInstance();
Код: Object classInstance = AOSUtils::getCurrentSession().getCustObjects()[1];
__________________
View Anton Soldatov's LinkedIn profile |
|
|
|
|
|