Ejemplo n.º 1
0
        public T GetDataSourceItem <T>() where T : IReflectionBase, new()
        {
            var allAttr = _reflectionService.GetAllAttribute <T>();
            var obj     = new T();

            foreach (var attr in allAttr)
            {
                obj = _reflectionService.InvokeGenericMethod <T>(allAttr[attr.Key], "Mhasasneh.Foundation.Reflections", "Handel", new object[] { attr, obj });
            }

            return(obj);
        }