コード例 #1
0
 public static AccuRevMother GetInstance() {
     AccuRevMother implementation; 
     if ((new ExecutionEnvironment()).IsRunningOnWindows)
         implementation = new AccuRevMotherWindows();
     else
         implementation = new AccuRevMotherUnix();
     return implementation;
 }
コード例 #2
0
        public static AccuRevMother GetInstance()
        {
            AccuRevMother implementation;

            if ((new ExecutionEnvironment()).IsRunningOnWindows)
            {
                implementation = new AccuRevMotherWindows();
            }
            else
            {
                implementation = new AccuRevMotherUnix();
            }
            return(implementation);
        }