Simple reflection, simple reflection

Source: Internet
Author: User

Simple reflection, simple reflection

After thinking about the simple reflection, I found some information on the Internet and some code, which is roughly as follows:

 public static void PrintProperties<T>(T t)        {            if (t == null)            {                return;            }            PropertyInfo[] properties = t.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);            if (properties.Length <= 0)            {                return;            }            foreach (PropertyInfo item in properties)            {                string name = item.Name;                object value = item.GetValue(t, null);                if (item.PropertyType.IsValueType || item.PropertyType.Name.StartsWith("String"))                {                    Console.WriteLine("{0}:{1}", name, value);                }                else                {                    foreach (PropertyInfo itemsub in value.GetType().GetProperties())                    {                        PrintProperties(value);                    }                }            }        }

 


What are the differences between simple reflection and complex reflection?

Hand scaling reflection, blinking reflection, urination reflection, knee hop reflection, and so on are all simple reflection from life. In this type of reflection, as long as there is stimulation, the normal human body will make corresponding reflection.

People can also form complex reflections through their long-term experience. For example, when a pedestrian hears a horn in the car behind him, he will quickly escape. Some language stimuli can also form complex reflection. "Wangmei Zhike" is a typical example.

Reflection related to language and text is complex and unique to humans.

The human body adjusts its own life activities through a variety of simple or complex reflections, so as to make appropriate responses to the stimulation inside and outside the body.

Simple reflection and complex reflection

The nerve hub of complex reflection is the cerebral cortex. Neurons in the cerebral cortex are different from those in the spinal cords of the brain stem. for example, the brain cannot feel the pain. the nerve controlling eye movement is in the brain stem and is attached to the spinal cord below. so blinking reflection is a simple reflection.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.