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.