private static CacheObject CreateCacheObject(Type type) { var cached = new CacheObject(); cached.AddFields(GetAttributedFields(InjectType, type)); cached.AddProperties(GetAttributedProperties(InjectType, type)); return(cached); }
private static CacheObject CreateCacheObject(IEnumerable <FieldInfo> fields, IEnumerable <PropertyInfo> properties) { var cached = new CacheObject(); cached.AddFields(fields); cached.AddProperties(properties); return(cached); }