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

◆ VerifyTypeAndPassedObjectType()

static void System.Reflection.Emit.CustomAttributeBuilder.VerifyTypeAndPassedObjectType ( Type type,
Type passedType,
string paramName )
inlinestaticprivate

Definition at line 211 of file CustomAttributeBuilder.cs.

212 {
213 if (type != typeof(object) && Type.GetTypeCode(passedType) != Type.GetTypeCode(type))
214 {
215 throw new ArgumentException(SR.Argument_ConstantDoesntMatch);
216 }
217 if (passedType == typeof(IntPtr) || passedType == typeof(UIntPtr))
218 {
219 throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, passedType), paramName);
220 }
221 }

References System.SR.Argument_BadParameterTypeForCAB, System.SR.Argument_ConstantDoesntMatch, System.SR.Format(), System.Type.GetTypeCode(), and System.type.

Referenced by System.Reflection.Emit.CustomAttributeBuilder.CustomAttributeBuilder().