How do I clean the console every 30s every time?
I tried creating it with timer but it did not work, or I must have done it wrong.
Here is the code:
var time = new Timer(LimparConsole,null,0,30000);
public static void LimparConsole (objec...
I'm trying to make a Generic CRUD for my project. However as I used DataBaseFirst I do not see how to have a generic class of Entity that can be inherited. Well it does not make the slightest sense, eventually when I upgrade the bank, it would h...
When I submit the form it acknowledges that ModelState.Valid is invalid but when it returns View() does not show the error messages I put in Model .
My Controller:
[HttpPost]
[ValidateAntiForgeryToken]
public...
I have this error message:
Product is a namespace but is used as a type
It was working and when I got compiled, I'm getting that error. How do I resolve this?
Well, I'll explain the problem to you:
I have a system that reads the barcodes and in this system I need the txt file that is receiving the code do not receive duplicate / duplicate files, ie it can not receive the same code 2 times.
I'm havi...
I'm creating an application where in classes I have a series of overload 's to optimize performance and flexibility. Ex:
public class Calc
{
// método original com sumário
/// <summary>
/// soma "a" com "b"
/// </s...
Follow the code below:
var values = new Dictionary<string, string>
{
{ "tipo1", "dada65d" },
{ "tipo2", "546541354765321" },
{ "tipo3", "klwoiqyhalwtbfowh" }
};
How can I declare class Dictionary as constant ( co...
I think about the possibility of a Web system saving information from a register in a JSON file on the client device, and that would later be sent to the DB. This will happen when the client is in an environment where it is not possible to acces...
There's a difference between starting a Timer like this:
_timerExam = new Timer();
_timerExam.Elapsed += new ElapsedEventHandler(OnTimedEvent);
_timerExam.Interval = 1000;
_timerExam.Start();
And so?
_timerExam = new Timer();
_time...
Does anyone know of any way to check if a Async process is running?
For example, I would like to do a check when the user closes the system, and do not close until all Async processes are complete.
async public void EvokeMetod...