Categoría: C Sharp

Debug Problems – ContextSwitchDeadlock –

While debugging an application written in C #, I found the following error, Context «ContextSwitchDeadlock». The process waits to load a file in txt. ContextSwitchDeadlock detected Message: The CLR could not make the COM...

Get and set .ini file values c #

Suppose you have an .ini file with the following information: [Data] Count=5 The following functions will allow you to obtain and modify your configuration file in a simple way: using System.Runtime.InteropServices; using System.Text; namespace...

Read text file with Linq in C # and apply filters

The following method allows you to read a text file, apply filters and store it in a string list. References using System.Linq;using System.IO; File «test.txt« VICTOR COMPUTERCLAUDIO COMPUTERFELIPE SAP CONSULTANT Code string path =...