Beispiel #1
0
		PythonSiteImpl GetImpl (Type runtimeType)
		{
			lock (s_syncRoot) {
				if (!s_Sites.ContainsKey (runtimeType))
					s_Sites [runtimeType] = new PythonSiteImpl (m_runtime);
				return s_Sites [runtimeType];
			}
		}
Beispiel #2
0
 PythonSiteImpl GetImpl(Type runtimeType)
 {
     lock (s_syncRoot) {
         if (!s_Sites.ContainsKey(runtimeType))
         {
             s_Sites [runtimeType] = new PythonSiteImpl(m_runtime);
         }
         return(s_Sites [runtimeType]);
     }
 }