Questions tagged as 'c#'

4
answers

I need different ways to rearrange characters within a string, how do I do this?

I would like answers in C, C #, or just an algorithm, but preferably an implementation already in the C # language because that's what I'm using. For example, suppose I have to find out if a number is read in the same way both ways - a silly...
asked by 07.09.2015 / 20:57
3
answers

Site in C # and MVC too slow

I developed a site in MVC and C #, but after deploying to the Gogaddy server I have noticed that the first access is very, but very slow. I almost check if there is a logged-in user, if I do not, I redirect to the login screen for access....
asked by 28.07.2015 / 01:22
3
answers

Lists repeating last item added

I was studying about the lists in C # and I could not understand what's wrong with my code (it's probably going to be pretty basic), all items are the same as the last item added. I've simplified the code to focus on just that part of the erro...
asked by 09.10.2017 / 15:47
3
answers

Filter specific file not to delete

How to make the code not delete a specific file I want among the .exe I get. Example: I want it not to delete "test.exe", but still keep erasing everything else. Follow the code: string[] arquivos = Directory.GetFiles(@"C:\temp\ae",...
asked by 28.05.2018 / 20:23
2
answers

What is the command to close or exit the game created in Unity?

I'm learning Unity and would like to know the command to quit the game, ie close the application and also knowing this command as I apply when pressing the back button of the mobile Android execute this command.     
asked by 30.12.2015 / 18:35
1
answer

Problems returning a large amount of data through WCF

Good afternoon, I have a web service done in WCF, when I make a query in the database and return a large amount of records it gives me the following error: An unhandled exception of type 'System.ServiceModel.CommunicationException' occurr...
asked by 21.01.2016 / 18:20
4
answers

Compare number within a numeric range

I want to create a function that receives a number and check that it is within a range of 1 to 25. What is the best way to do this? private int VerificaIntervalo(int numero) { if (numero > 25) { return 0; } return 1;...
asked by 19.01.2016 / 18:50
2
answers

Delete row from a list in C #

I have a list as described below I would like to delete a line from the mylistnova1 list as condition is true. I try to do as described below but generates error! Could you please help me? Abs.        public DataTable Query (DataTable tab...
asked by 29.12.2015 / 20:09
3
answers

Sort images by the height of each

I have a list of images with different dimensions. I wanted the images to be sorted from the smallest to the largest: the one that has height smaller was in the first and the height greater was last. Using only jQuery with HTML....
asked by 02.09.2014 / 19:48
2
answers

Tagging photo with problem

I've made a code that labels a jpg , by typing the client's site address in the image footer. The Problem: Some photos the text is coming giant as if it were source 72px instead of source 12px Correct Photo Link Link wrong PH...
asked by 14.10.2014 / 21:23