Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want to created a method using MethodBuilder with no parameters.
There is no MethodAttributes for that.
Sending null as parameters, empty lists as parameters and Type.EmptyTypes do not work.
Please Help!
Posted
Updated 20-Feb-13 18:53pm
v2
Comments
Azziet 21-Feb-13 0:56am    
check this

http://msdn.microsoft.com/en-us/library/system.reflection.emit.methodbuilder.aspx

read complete article...
Kishor Deshpande 21-Feb-13 1:10am    
Can you please avoid posting same question?
RajeshRaushan 22-Feb-13 10:22am    
Can you try following once -

System.Type[] arr = { };

Pass the arr.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900