コード例 #1
0
 public ActionLibrary GetActionLibrary(int libid)
 {
     ActionLibrary lib;
     if (Libraries.TryGetValue(libid, out lib))
         return lib;
     lib = new ActionLibrary(this, libid);
     Libraries.Add(libid, lib);
     return lib;
 }
コード例 #2
0
        public ActionLibrary GetActionLibrary(int libid)
        {
            ActionLibrary lib;

            if (Libraries.TryGetValue(libid, out lib))
            {
                return(lib);
            }
            lib = new ActionLibrary(this, libid);
            Libraries.Add(libid, lib);
            return(lib);
        }