Questions tagged as 'c#'

1
answer

Convert "-12.0000" (string) to -12.0000 (double). It's possible? [duplicate]

Is it possible to convert "-12.0000" (string) to -12.0000 (double)? Follow the code below: var valor = "-12.0000"; var result = Convert.ToDouble(valor, CultureInfo.InvariantCulture); //-12 <--- perde zeros Or if you pr...
asked by 06.10.2017 / 18:06
2
answers

Error while validating with Regex

I'm trying to format this text with regex but I do not have the desired return: From:    "ST STN, SET J, * STORES T-40 / T41, - TER-REO, SHOPPING &   BOULEVARD KM 28,5 VALUE 450.00 CENTRAL. " To:    "ST STN CONJUNTO J LOJAS T40 T...
asked by 20.04.2017 / 20:49
0
answers

Field NULL in date, passing as parameter to the bank

I am trying to treat a field in my program to accept data NULL if it is not filled, that field would be CliDtNasc . I did the treatment in the class with the% ter and% in the properties of the treated class to check if the field is...
asked by 18.04.2017 / 16:51
5
answers

Using unused affect performance?

While developing, I saw that in most of my classes contained a certain amount of using that were not being used and I came to doubt the title. Using unused affects the performance of the application in any way? Do you always need to re...
asked by 21.05.2014 / 16:53
1
answer

Bank without PK, but mapped PK to Entity. Is that a problem?

I'm having problems with float fields. Well, this post will deal with another subject, but I thought I could somehow infer that problem. I stopped to think and analyze the matter. This bank belongs to the customer and is very old. If someone tel...
asked by 17.09.2017 / 02:57
0
answers

How to capture the frequency of the sound being picked up by the microphone [closed]

The question is simple, How to determine the frequency of the sound obtained by the microphone in C #? I want to build an instrument tuner for a program I'm developing ... Do you have a library ready? or what is the path of the stones? ...  ...
asked by 13.09.2017 / 20:15
0
answers

Communicate with Arduino via COM4 [closed]

I created a code in C # to communicate with the Arduino one. It has to pass me which tag passed the rfid reader and show the value in a textbox. I added the serialport1. Code: serialPort1.Open(); string entrada = serialPo...
asked by 01.04.2017 / 23:13
1
answer

How to add a linked column in GridView?

I have the following code that generates my GridView: protected void Page_Load(object sender, EventArgs e) { try { AlteracoesContrato alteracoes = new AlteracoesContrato(movimentacaoId);...
asked by 31.03.2017 / 16:32
0
answers

How to set language according to .resx file

I am aware of the existence of this question: Internationalization using ASP.Net MVC But I have some doubts. I have these language files (I'll have more in the future): Thesysteminquestiondoesnotgiveanypostbackinthepages,soIcannotcha...
asked by 18.04.2017 / 15:37
1
answer

An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code asp.net

I'm having trouble getting this error resolved. My purpose is to collect data from an Excel file storing it in C # variables, which in turn will be inserted in SQL Server 2012. Reading is done line by line. Here is the code where the error happe...
asked by 24.02.2017 / 10:50