コード例 #1
0
ファイル: DependencyManager.cs プロジェクト: netcasewqs/nlite
 public static AppSettingDependency GetAppSettingDependency(string id, Type dependencyType)
 {
     AppSettingDependency info;
     if (!appSettingDependencyList.TryGetValue(id, out info))
     {
         info = new AppSettingDependency(id, dependencyType);
         lock (Mutex)
             appSettingDependencyList[id] = info;
     }
     return info;
 }
コード例 #2
0
        public static AppSettingDependency GetAppSettingDependency(string id, Type dependencyType)
        {
            AppSettingDependency info;

            if (!appSettingDependencyList.TryGetValue(id, out info))
            {
                info = new AppSettingDependency(id, dependencyType);
                lock (Mutex)
                    appSettingDependencyList[id] = info;
            }
            return(info);
        }