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

◆ IsVirtual()

static bool System.Text.Json.Reflection.ReflectionExtensions.IsVirtual ( this PropertyInfo propertyInfo)
inlinestatic

Definition at line 163 of file ReflectionExtensions.cs.

164 {
165 if (propertyInfo != null)
166 {
167 MethodInfo? getMethod = propertyInfo.GetMethod;
168 if ((object)getMethod == null || !getMethod.IsVirtual)
169 {
170 return propertyInfo.SetMethod?.IsVirtual ?? false;
171 }
172 return true;
173 }
174 return false;
175 }

References System.Reflection.PropertyInfo.GetMethod, and System.Reflection.PropertyInfo.SetMethod.