public static IEnumerable GetProperties()

in src/React.Core/TinyIoC/TinyIoC.cs [463:480]


        public static IEnumerable<PropertyInfo> GetProperties(this Type type) 
        {
            TypeInfo t = type.GetTypeInfo();
            IList<PropertyInfo> properties = new List<PropertyInfo>();
            while (t != null)
            {
                foreach (PropertyInfo member in t.DeclaredProperties)
                {
                    if (!properties.Any(p => p.Name == member.Name))
                    {
                        properties.Add(member);
                    }
                }
                t = (t.BaseType != null) ? t.BaseType.GetTypeInfo() : null;
            }

            return properties;
        }