Questions tagged as 'c#'

3
answers

Prevent the system from crashing during a batch email

I'm developing a system that sends batch email to clients, but if the user who is operating the system clicks on any part of the window during the process, it appears that the system is not responding, interrupting the sending process . I wou...
asked by 21.01.2015 / 21:25
1
answer

C # - Import configuration file (.ini)

How do I import an ini configuration file so that it loads and returns a value of one key: Example: [version] code=0.3 The program will load the ini file and I select the section (in case it is 'version'), select the key (in the case it...
asked by 23.10.2014 / 02:09
1
answer

C # float ++ and float--

I used the following code snippet: bool plus = false; int index = 0; index = plus ? index++ : index--; The index result is 0 and I do not know why, when I do the form below it works: index += plus ? 1 : -1; Does anyone have an explana...
asked by 01.08.2018 / 11:17
1
answer

Can a class be a data type?

What I understand about data type is that they are formed by three properties, they are: Address set; Operations Set; Memory Space; Assuming what is above I can understand that a class I create for example class Pessoa : pub...
asked by 17.02.2016 / 01:04
1
answer

How to mount SELECT in lambda C #?

Recently I asked for help to assemble a SELECT to bring the price of the products How to mount SELECT They gave me this solution that worked perfectly: SELECT P.PROCODIGO, P.PRONOME, H.HISPRECO FROM PRODUTO P INNER JOIN HISTORICO H ON...
asked by 16.02.2016 / 20:18
1
answer

Web Api Client in Windows Forms

I'm making a client using Web Api. My site has the Web server function Api. I found this reference from Microsoft link which has an example client: static async Task RunAsync() { using (var client = new HttpClient()) { client...
asked by 05.05.2014 / 20:23
4
answers

Instantiate class as property of another class

I have two classes created within the same namespace , being: public class Pessoa { public int idPessoa { get; set;} public string nome { get; set;} } public class PessoaFisica { public Pessoa pessoa { get; set;} public...
asked by 09.05.2014 / 14:16
2
answers

Terminate a process in C # with WPF

I have a solution that has two projects. one main project and one that serves as an Updater. To perform the upgrade, within the main project, I call a console application as follows. private void Window_Loaded(object sender, RoutedEventArgs...
asked by 08.04.2014 / 14:27
2
answers

Removal of comments in the HTML sent by the server

We all know the good old HTML comments: <!-- Oi, eu sou o Goku! --> The question is: Is there any way to exclude comments from the HTML that the server sends to the client? I think such a configuration is done at the server level (I...
asked by 05.03.2014 / 20:28
1
answer

Automatic reading routine between 2 databases in C #

I need to create a C # routine that reads 2 databases and feeds the read data to another database. The development part of the system itself I can do without problems, but I do not know what kind of project to develop. This routine will run week...
asked by 19.02.2014 / 14:03