Example #1
0
        protected Drop()
        {
            Type t = GetType();

            if (!_cache.TryGetValue(t, out _resolution))
            {
                _cache[t] = _resolution = new TypeResolution(t);
            }
        }
Example #2
0
 protected Drop()
 {
     Type t = GetType();
     if (!_cache.TryGetValue(t, out _resolution))
         _cache[t] = _resolution = new TypeResolution(t);
 }
Example #3
0
 /// <summary>
 /// Create a new DropProxy object
 /// </summary>
 /// <param name="obj">The object to create a proxy for</param>
 /// <param name="declaredOnly">Specifies that only members declared at the level of the supplied type's hierarchy should be considered. Inherited members are not considered.</param>
 public DropProxy(object obj, bool declaredOnly)
 {
     proxiedObject = obj;
     Type t = obj.GetType();
     if (!_cache.TryGetValue(t, out _resolution))
         _cache[t] = _resolution = new TypeResolution(t, false, declaredOnly);
 }