Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i used this link http://msdn.microsoft.com/en-us/library/bb386921[^] to use the copytodatatable method .I am getting an error at the copytodatatable method inside the CustomLINQtoDataSetMethods.it is saying that:
Extension method must be defined inside the top level static class
Posted
Updated 18-May-12 10:16am
v2

1 solution

As explained here http://msdn.microsoft.com/en-us/library/bb384228(v=vs.90).aspx[^] the above error is generated when the class in which extension methods are defined is a nested class. So please check your class and make it top level static class.
 
Share this answer
 

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