Ejemplo n.º 1
0
 internal static TypeNameCache GetCache()
 {
     if (m_cache == null)
     {
         lock (typeof(TypeNameCache)) {
             if (m_cache == null)
             {
                 m_cache = new TypeNameCache();
             }
         }
     }
     return(m_cache);
 }
Ejemplo n.º 2
0
 internal static TypeNameCache GetCache() {
     if (m_cache==null) {
         lock (typeof(TypeNameCache)) {
             if (m_cache==null) {
                 m_cache = new TypeNameCache();
             }
         }
     }
     return m_cache;
 }