Beispiel #1
0
        public Object GetObject( IAdaptingType key )
        {
            return GetObject( key, key.getDefaultType() );
            /*
            foreach (Object item in cache[key].Values)
                return item;

            throw new Exception("Object not exists in reference cache");
             */
        }
Beispiel #2
0
        public Object GetObject(IAdaptingType key)
        {
            return(GetObject(key, key.getDefaultType()));

            /*
             * foreach (Object item in cache[key].Values)
             *  return item;
             *
             * throw new Exception("Object not exists in reference cache");
             */
        }
Beispiel #3
0
 public Type getDefaultType()
 {
     if (mappedType != null)
     {
         return(mappedType);
     }
     else
     {
         return(typedObject.getDefaultType());
     }
 }
Beispiel #4
0
 public void AddObject(IAdaptingType adapter, Object value)
 {
     AddObject(adapter, adapter.getDefaultType(), value);
 }
Beispiel #5
0
 public bool HasObject(IAdaptingType key)
 {
     return(HasObject(key, key.getDefaultType()));
     //return cache.ContainsKey(key) && cache.Count > 0;
 }
 public Type getDefaultType()
 {
     return(realType.getDefaultType());
 }
Beispiel #7
0
 public void AddObject(IAdaptingType adapter, Object value)
 {
     AddObject(adapter, adapter.getDefaultType(), value);
 }
Beispiel #8
0
 public bool HasObject(IAdaptingType key)
 {
     return HasObject( key, key.getDefaultType() );
     //return cache.ContainsKey(key) && cache.Count > 0;
 }
Beispiel #9
0
 public Type getDefaultType()
 {
     return(Object != null?Object.getDefaultType() : null);
 }