コード例 #1
0
 public static IScriptName GetScriptName(string ScriptName)
 {
     IScriptName tempScriptName = null;
     switch (ScriptName)
     {
         case "Required":
             tempScriptName = new RequiredClass();
             break;
         case "Enabled":
             tempScriptName = new EnabledClass();
             break;
         default:
             break;
     }
     return tempScriptName;
 }
コード例 #2
0
        public static IScriptName GetScriptName(string ScriptName)
        {
            IScriptName tempScriptName = null;

            switch (ScriptName)
            {
            case "Required":
                tempScriptName = new RequiredClass();
                break;

            case "Enabled":
                tempScriptName = new EnabledClass();
                break;

            default:
                break;
            }
            return(tempScriptName);
        }