Data tables are the best data source for many controls in .net environment. But manipulating data with data tables i.e., when considering large amount of data its a wind up process. The process will be very slow when we compare the same manipulation with List. For an analysis I iterated 1500 records with some login with data tables and list. The analysis report is as below With Data Table 1500 Rows Data Table - Processing Time - 2 minutes 44 seconds With List 1500 Items List - Processing Time - 32 seconds Conclusion: For manipulating large amount of data, its better to choose List rather than Data Table.
- Other Apps
Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type. For client code written in C# and Visual Basic, there is no apparent difference between calling an extension method and the methods that are actually defined in a type. Extension methods can be used in any type of projects like ASP.Net, MVC, Windows Forms, and WPF etc. Implementation: Create a class with some desired name and place it in any place of the project. Make sure the namespace of the class should be the root namespace of the project. Create a static method which a return type and a parameter. The parameter should be prefixed with “this” keyword. Usage: If any variable that matches with the parameter type of the extension can use the extension methods. Intelligence w
- Other Apps
Open the project properties from the Visual Studio (Project Menu -><Your Project Name> Properties…) Move to publish tab. “Publishing Folder Location” – Provide a location to publish the files. This may be the remote location or the local machine’s folder path. Ex: D:\Publish “Installation Folder URL” - Provide a remote location where the files can be downloaded by the user. This can be a virtual folder path. Ex: http://mycrazydomain.com/Publish “Install Mode and Settings” – Here if your application can be used both in online and offline then choose “The application is available offline as well as launchable from start menu” or if your application can be used only in online then choose the either. Click on the Updates button and make sure the update location is same as the Installation folder URL if your application will be having updates. Click on options Fill the description tab with the necessary details. Make the Deployment tab as below Make the Manifests t