Beispiel #1
0
 internal static TypeNameCache GetCache()
 {
     if (m_cache == null)
     {
         lock (typeof(TypeNameCache)) {
             if (m_cache == null)
             {
                 m_cache = new TypeNameCache();
             }
         }
     }
     return(m_cache);
 }
Beispiel #2
0
 internal static TypeNameCache GetCache() {
     if (m_cache==null) {
         lock (typeof(TypeNameCache)) {
             if (m_cache==null) {
                 m_cache = new TypeNameCache();
             }
         }
     }
     return m_cache;
 }