Posts by tkpb • 163 points
5 posts
-
1
votes1
answer1145
viewsQ: What is the difference between Int32 and int in C#?
In C#, use String or string, Int32 or int, among others, there is no difference, in thesis. Anyone knows if this difference generates any impact on the performance of high complexity applications?…
-
2
votes2
answers5206
viewsA: File supposedly being used cannot be deleted
Wow, I figured out the problem! It was my fault, because I did not mention that before deleting the old logs, I check if there are logs bigger than 2KB (which means there were many errors that day),…
-
7
votes2
answers2674
viewsQ: Receive indefinite amount of parameters in C#
The method Main(string[] args) receives an array of indefinite amount parameters. But I know this doesn’t work in a common method. How to create a method that takes as many parameters as needed?…
-
2
votes2
answers174
viewsQ: Receiving code 200 when it should be 404
I created an ASP.NET MVC 5 application by adding the following code snippets: Web.config <system.web> <customErrors mode="On"> <error statusCode="404" redirect="~/Erro/Erro404"/>…
-
4
votes2
answers5206
viewsQ: File supposedly being used cannot be deleted
I have a software that records error logs of itself inside a "logs" folder. Each log file is created with the current day date, so it is unique to the current day. Example: 30-04-2014.log. I use…