Saturday, July 27, 2019

datable to csv and vice versa

datable to csv and vice versa

  1. DataTable to Excel
  2. Print DataTable to Console (and more)
  3. POCO Generator
  4. Converting a List to a DataTable
  5. A generic Collection to DataTable Mapper
  6. Writing a DataTable to a CSV File
  7. GridView to a DataTable
  8. CSV To/From DataTable
  9. Exporting a DataTable to PDF
  10. Dealing with DataTables
  11. Conversion Between DataTable and List in C#
  12. Convert Datatable to Collection using Generic
  13. Various Ways to Convert DataTable to List
  14. How to Manually Create a Typed DataTable
  15. Obtaining Current DataTable Row for a DataGrid
  16. Convert a Generic List to a Datatable
  17. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 1
  18. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 4
  19. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 2
  20. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 3
  21. A Helper Class to Bind a DataTable to a Class
  22. DataTable caching performance
  23. Converting text files (CSV) to DataTable
  24. Converting a List to a DataTable
  25. Convert DataTable to List of Object
  26. good C# document: Index of /~lok/csharp/refdocs
  27. Bind/Map DataTable to Object's Fields and Properties
  28. C# Convert DataTable to List of Objects Dynamically
  29. XTree Part III - Trees, DataSets, and DataTables
  30. Databinding for Beginners
  31. DataTable Generator Using Attributes
  32. 反流性食管炎是怎么回事

good parser posts

good parser posts, Honey pos some good articles. need to play with it and them build my language.

  1. The Parser Construction Kit ("Puck")
  2. Pck: The Parser Construction Kit
  3. Pck/Edit: A GUI for Building Parsers
  4. Pck/Edit: A GUI for Building Parsers
  5. Pck/LALR(1): An LR parsing algorithm
  6. Pck/Cfg: Context Free Grammars in PCK
  7. Pck: Code Roundup and Quick Start Guide
  8. Pck/Cfg: Context Free Grammars in PCK
  9. Pck/Edit: A GUI for Building Parsers
  10. LL: A Parser Generator Playground
  11. LL: A parser generator playgroundJLogger - When You Care to Write the Very Best
  12. JHelpers - A Good and Faithful Servant
  13. JLogger - When You Care to Write the Very Best
  14. Modular Software Development In C#
  15. Easier Hand Rolled Parsers
  16. Newt: A Powerful C# Parser Generator in a Small Package
  17. ParseContext 2.0: Easier Hand Rolled Parsers
  18. How to Make an LL(1) Parser: Lesson 1
  19. How to Make an LL(1) Parser: Lesson 2
  20. How to Make an LL(1) Parser: Lesson 3

good coding practice

good coding practice

  1. Test-Driven Development In C#

directory selection component in C#

directory selection component in C#

  1. 4 ways to enable the latest C# features
  2. Thread: Save FolderBrowserDialog selection to file (config.txt)? share-icon
  3. It's real simple to use the built-in Settings functionality.

    To add a setting, just right click on your forms project in the solution explorer and choose, "Properties".

    On the left, click on the Settings tab.

    Enter a new setting (I called mine 'MySavedFolder'). Choose the type and visibility (User or application). I chose User. Give the setting a default value (I used 'default value').

    Next, wire up the setting in the forms code. I created a simple test form with an textbox and a save button. In the form editor, double click on the button to create a button handler.

    Next, wire up the setting.

    public partial class Form1 : Form { public Form1() { InitializeComponent(); // Retrieve the settings and load it into the textbox textBox1.Text = Properties.Settings.Default.MySavedFolder; } private void saveButton_Click(object sender, EventArgs e) { // Save the value from the textbox into the settings. Properties.Settings.Default.MySavedFolder = textBox1.Text; Properties.Settings.Default.Save(); } }

  4. How to use OpenFileDialog to select a folder?
  5. this link contains lot of good info. all kinds of component need to take a look and play around it.

  6. .NET Win 7-style folder select dialog
  7. Common dialog classes for Windows Forms applications
  8. RichTextBox Class
  9. FolderBrowserDialog Class
  10. How to: Choose Folders with the Windows Forms FolderBrowserDialog Component
  11. FolderBrowserDialog In C#
  12. C# FolderBrowserDialog Control
  13. Let the user select a folder in C#
  14. The second useful technique is that the program saves the user’s selection between runs. At design time I created a setting named Directory. To create a setting, double-click the Properties entry in Solution Explorer and go to the Settings tab.

    When it starts, the program uses the following code to load the value saved in this setting.

    // Restore the saved directory. private void Form1_Load(object sender, EventArgs e) { txtDirectory.Text = Properties.Settings.Default.Directory; }

    The program uses the following code to save the current selection when the form closes.

    // Save the current directory. private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Directory = txtDirectory.Text; Properties.Settings.Default.Save(); }

  15. Browse for a Folder in C# Winforms
  16. Example for FolderBrowserDialog in C#
  17. C# OpenFileDialog and FolderBrowserDialog to select Files & Folder
  18. Winform : How to use Folder and Open File Dialog Controls using C#
  19. Set InitialDirectory for FolderBrowserDialog
  20. How to Build a 'Folder Watcher' Service in C#
.

Thursday, July 25, 2019

abstract class and property

C# keyword: virtual

C# keyword: virtual

  1. Understanding virtual, override and new keyword in C#
  2. A Deep Dive into C# Property
  3. virtual (C# Reference)
  4. C# Virtual Keyword
  5. All about Virtual,Override and New in C#
  6. What is the difference between an abstract function and a virtual function?
  7. Understanding Collections and Collections Interfaces
  8. A Deep Dive into C# Interface
  9. A Deep Dive into C# Abstract Class
  10. A Deep Dive into C# Errors or Exceptions Handling
  11. C# Virtual Method (Runtime Type Is Used)
  12. Exploring virtual and abstract methods in C#
  13. What is the difference between virtual and abstract functions in C#?
  14. Virtual vs Sealed vs New vs Abstract in C#
  15. Virtual vs Override
  16. Virtual vs Override vs New Keyword in C#
  17. C# Virtual, Override, new and Abstract keywords
  18. Polymorphism, Method Hiding and Overriding in C#
  19. Difference between Abstract and Virtual in C#
  20. 反流性食管炎是怎么回事
  21. WHAT IS ABSTRACT AND VIRTUAL METHOD?
  22. UNDERSTANDING VIRTUAL, OVERRIDE AND NEW KEYWORD IN C#
  23. Virtual events in C#: something went wrong
  24. Difference Between Virtual And Abstract Keywords In C#