Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckPropertyRead()

static bool System.Xml.Serialization.StructModel.CheckPropertyRead ( PropertyInfo propertyInfo)
inlinestaticpackage

Definition at line 112 of file StructModel.cs.

113 {
114 if (!propertyInfo.CanRead)
115 {
116 return false;
117 }
118 MethodInfo getMethod = propertyInfo.GetMethod;
119 if (getMethod.IsStatic)
120 {
121 return false;
122 }
123 ParameterInfo[] parameters = getMethod.GetParameters();
124 if (parameters.Length != 0)
125 {
126 return false;
127 }
128 return true;
129 }
virtual ? MethodInfo GetMethod

References System.Reflection.PropertyInfo.CanRead, System.Xml.Dictionary, and System.Reflection.PropertyInfo.GetMethod.

Referenced by System.Xml.Serialization.FieldModel.FieldModel(), and System.Xml.Serialization.StructModel.GetPropertyModel().