Questions tagged as 'c#'

1
answer

How do I insert references to use the ScriptEngine class?

Based on the question Compile string as code includes in my project the ScriptEngine class, however, it is not being found in the references: using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting.CSharp; //Nes...
asked by 30.03.2017 / 20:43
0
answers

SignaIR - C # - Real Time Response [closed]

I'm using C #, Asp .Net, SQL Server. I have the following question, I am creating a web and mobile application to communicate with a WebApi however I came across the problem of information and / or data in real-time, through searches I found...
asked by 29.12.2015 / 10:28
2
answers

How to use the same ZPL code on printers with different dpi [closed]

Expensive, I've been using ZebraDesigner2 software to create ZPL labels for printing on the GC420t for some time and I'm not having any problems. Now I have to generate ZPL code for label printing using the S4M (200 dpi) and ZT230 (300 dpi) p...
asked by 19.10.2015 / 21:56
2
answers

How to call a non-static method inside a static class?

I have the following method / function and I need to call the method / function criaTimerTendencia that is within the class TagAnalogicaAtiva . private static void VerificaEnvioDeMensagensSignalR(object sender, EventArgs e) {...
asked by 12.05.2017 / 20:11
2
answers

Operations with amounts of time and conversion between units of time

Is there a library specialized in the manipulation of quantities and units of time? It allows the conversion of / in milliseconds, seconds, minutes and operations of addition and subtraction of amounts of time. Native to c# I have not...
asked by 06.06.2017 / 00:29
2
answers

Ignore a specific exception

In my try-catch , I want to write the exception that occurred within an object (for historical purposes, necessary for the business rule, since this section occurs in a processing via integration with external sources). > To do this, I n...
asked by 17.01.2017 / 13:37
2
answers

Keep variable in memory until system reboot

Is there a way to keep a variable in the machine's memory until it restarts? My application made a change in the system and sent the message to the user to restart the machine, to prevent any problems I have to detect if the machine has alrea...
asked by 28.07.2016 / 04:01
3
answers

Array with no size limit

ClsPessoa[] Pessoa = new ClsPessoa[10]; I'm new to C # and would like some help. How can I declare an array of a class as in the example, without inserting a size limit.     
asked by 11.10.2015 / 20:48
2
answers

C # - How to check if a string has only spaces?

The propgram reads all rows from a file, and I have to check that in this line that it is reading it has only spaces, because if it has only spaces in it, it will be considered invalid by the program. How do I check if it has only spaces ("")?...
asked by 24.08.2017 / 21:41
2
answers

Field name of a generic object - reflection [duplicate]

Good morning everyone. I have a problem that I believe can be solved with Reflection, but I do not know how to use it and hope they can help me through my difficulty. I have an object that will be passed as a parameter to a specific method....
asked by 12.12.2017 / 14:20