Exemplo n.º 1
0
 private void  Init()
 {
     _byteCache        = new ByteCache(this);
     _shortCache       = new ShortCache(this);
     _intCache         = new IntCache(this);
     _floatCache       = new FloatCache(this);
     _longCache        = new LongCache(this);
     _doubleCache      = new DoubleCache(this);
     _stringCache      = new StringCache(this);
     _stringIndexCache = new StringIndexCache(this);
 }
Exemplo n.º 2
0
 private void  Init()
 {
     lock (this)
     {
         caches = new HashMap<Type, Cache>(7);
         caches[typeof(sbyte)] = new ByteCache(this);
         caches[typeof(short)] = new ShortCache(this);
         caches[typeof(int)] = new IntCache(this);
         caches[typeof(float)] = new FloatCache(this);
         caches[typeof(long)] = new LongCache(this);
         caches[typeof(double)] = new DoubleCache(this);
         caches[typeof(string)] = new StringCache(this);
         caches[typeof(StringIndex)] = new StringIndexCache(this);
     }
 }
Exemplo n.º 3
0
 private void  Init()
 {
     lock (this)
     {
         caches = new HashMap <Type, Cache>(7);
         caches[typeof(sbyte)]       = new ByteCache(this);
         caches[typeof(short)]       = new ShortCache(this);
         caches[typeof(int)]         = new IntCache(this);
         caches[typeof(float)]       = new FloatCache(this);
         caches[typeof(long)]        = new LongCache(this);
         caches[typeof(double)]      = new DoubleCache(this);
         caches[typeof(string)]      = new StringCache(this);
         caches[typeof(StringIndex)] = new StringIndexCache(this);
     }
 }
Exemplo n.º 4
0
 private void  Init()
 {
     lock (this)
     {
         System.Collections.Hashtable caches2 = new System.Collections.Hashtable(7);
         caches2[System.Type.GetType("System.SByte")]  = new ByteCache(this);
         caches2[System.Type.GetType("System.Int16")]  = new ShortCache(this);
         caches2[System.Type.GetType("System.Int32")]  = new IntCache(this);
         caches2[System.Type.GetType("System.Single")] = new FloatCache(this);
         caches2[System.Type.GetType("System.Int64")]  = new LongCache(this);
         caches2[System.Type.GetType("System.Double")] = new DoubleCache(this);
         caches2[typeof(System.String)]      = new StringCache(this);
         caches2[typeof(StringIndex)]        = new StringIndexCache(this);
         caches2[typeof(System.IComparable)] = new CustomCache(this);
         caches2[typeof(System.Object)]      = new AutoCache(this);
         caches = caches2;
     }
 }
Exemplo n.º 5
0
		private void  Init()
		{
			lock (this)
			{
                System.Collections.Hashtable caches2 = new System.Collections.Hashtable(7);
                caches2[System.Type.GetType("System.SByte")] = new ByteCache(this);
                caches2[System.Type.GetType("System.Int16")] = new ShortCache(this);
                caches2[System.Type.GetType("System.Int32")] = new IntCache(this);
                caches2[System.Type.GetType("System.Single")] = new FloatCache(this);
                caches2[System.Type.GetType("System.Int64")] = new LongCache(this);
                caches2[System.Type.GetType("System.Double")] = new DoubleCache(this);
                caches2[typeof(System.String)] = new StringCache(this);
                caches2[typeof(StringIndex)] = new StringIndexCache(this);
                caches2[typeof(System.IComparable)] = new CustomCache(this);
                caches2[typeof(System.Object)] = new AutoCache(this);
                caches = caches2;
			}
		}
Exemplo n.º 6
0
		private void  Init()
		{
			lock (this)
			{
                Support.Dictionary<Type, Cache> caches2 = new Support.Dictionary<Type, Cache>();
                caches2[typeof(sbyte)] = new ByteCache(this);
                caches2[typeof(short)] = new ShortCache(this);
                caches2[typeof(int)] = new IntCache(this);
                caches2[typeof(float)] = new FloatCache(this);
                caches2[typeof(long)] = new LongCache(this);
                caches2[typeof(double)] = new DoubleCache(this);
                caches2[typeof(string)] = new StringCache(this);
                caches2[typeof(StringIndex)] = new StringIndexCache(this);
                caches2[typeof(System.IComparable)] = new CustomCache(this);
                caches2[typeof(System.Object)] = new AutoCache(this);
                caches = caches2;
			}
		}
Exemplo n.º 7
0
 private void  Init()
 {
     lock (this)
     {
         Support.Dictionary <Type, Cache> caches2 = new Support.Dictionary <Type, Cache>();
         caches2[typeof(sbyte)]              = new ByteCache(this);
         caches2[typeof(short)]              = new ShortCache(this);
         caches2[typeof(int)]                = new IntCache(this);
         caches2[typeof(float)]              = new FloatCache(this);
         caches2[typeof(long)]               = new LongCache(this);
         caches2[typeof(double)]             = new DoubleCache(this);
         caches2[typeof(string)]             = new StringCache(this);
         caches2[typeof(StringIndex)]        = new StringIndexCache(this);
         caches2[typeof(System.IComparable)] = new CustomCache(this);
         caches2[typeof(System.Object)]      = new AutoCache(this);
         caches = caches2;
     }
 }