Questions tagged as '.net'

1
answer

Problems with accentuation when reading JSON file data

The method below is extracting data from a JSON file, to populate a DropDownList. public static List<Uf> GetAll() { var client = new WebClient(); JsonSerializerSettings settings = new JsonSerializerSettings(); settings.Culture = ne...
asked by 10.10.2016 / 21:30
3
answers

Is there any class in C # for manipulating properties files?

In C # you have some class for handling files properties ? In java I use the class Properties , wanted to know if it has an equivalent in C #?     
asked by 08.10.2016 / 20:45
1
answer

.exe file in Visual Studio 2015

How do I generate an executable that runs on any machine without .Net installed? The one in the bin/debug folder is not useful because it needs .Net to run.     
asked by 21.08.2016 / 23:53
1
answer

Using ToUInt64 to format string is correct?

Looking for a practical way to format string I came across the following: Convert.ToUInt64(string).ToString(@"00000\-000") . Is it a good practice to use this method to format strings ? Is there a recommended way? Here...
asked by 10.08.2016 / 22:48
1
answer

What are the differences between a DataTable and a DataReader for MySQL queries in C #?

I am creating a C # project with MySQL, my connector follows the Singleton pattern and I use MySqlDataReader to retrieve the data from the table and popular a List so far so good. My problem started when I had to recover data from one table b...
asked by 26.01.2015 / 20:58
1
answer

Is there a difference between GCC C ++ and Visual Studio C ++?

I have already programmed in C ++ compiling with GCC and when I started using Visual Studio I noticed that it has support for C ++, however the implementation is geared towards the .Net platform. Is there a difference between these two versio...
asked by 02.08.2016 / 07:50
2
answers

Error in .First (), because there is no result selected

In my controller login I use the following code to make the user selection if it exists, however whenever the user types the incorrect name or password, an error because it does not find the result for .First . I need to make a treatmen...
asked by 04.12.2015 / 20:25
3
answers

Search in List (Of String) - Case insensitive

How do you search for String on List(Of String) without considering the case? I am using .net 2.0. Contains does not allow you to pass any additional parameters. I tried to use Find but it also did not work. Dim...
asked by 22.10.2015 / 14:19
1
answer

Problem with null variable

I'm developing C # software with the MVVM template , and with Visual Studio. It is software to manage the members of a university. We also have to use a database with Code First. My problem is that it gives me the following error:  ...
asked by 09.11.2016 / 16:37
2
answers

System modulation

I'm developing a C # system with WinForms of Livestock Control for a farm, and will communicate with a scale to improve the weighing process. Some of the features are (Invoice entry, vaccination, casualties, transfers, purchases, stock). I...
asked by 26.10.2016 / 16:09