public static ReflectionTypeProxy GetReflectionTypeProxy(Type objectType) { string key = objectType.FullName; if (_proxyCache.ContainsKey(key)) { return(_proxyCache[key]); } ReflectionTypeProxy proxyObject = new ReflectionTypeProxy(objectType); _proxyCache.Add(key, proxyObject); return(proxyObject); }
protected void Initialize(object source, Type sourceType) { _source = source; _sourceType = sourceType; _proxy = ReflectionTypeProxyCache.GetReflectionTypeProxy(_sourceType); }
public ReflectionWrapper() { _source = null; _sourceType = null; _proxy = null; }