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

◆ IsDisallowedByRefType()

static bool System.Reflection.RuntimeMethodInfo.IsDisallowedByRefType ( Type type)
inlinestaticprivate

Definition at line 172 of file RuntimeMethodInfo.cs.

173 {
174 if (!type.IsByRef)
175 {
176 return false;
177 }
178 Type elementType = type.GetElementType();
179 if (!elementType.IsByRefLike)
180 {
181 return elementType == typeof(void);
182 }
183 return true;
184 }

References System.elementType, System.Type.GetElementType(), and System.type.