Questions tagged as 'c#'

1
answer

Develop standard template Razor - ASPNET MVC

I have an ASPNET MVC5 project using C # which, by design definition it was agreed that the layout of the page structure would be stored in the database. Within my _ViewStart would be referenced my _Layouts.cshtml that would be the common cont...
asked by 05.02.2015 / 13:09
1
answer

Is it possible to use Session in Windows Service?

I have an application in Windows Service, and I need to save the state while a certain method is executed, what is the best way to do this?     
asked by 10.02.2015 / 18:40
1
answer

How to change the text of a cell in a table that is inside a Flowdocument that is in a RichTextBox at a time

I'm trying the following code to replace the text in the question situation, where rtb is richtextbox , .Document is flowdocument . The text is changed in Run (r), but when I open the document the exchange was not made. foreach (...
asked by 07.03.2014 / 20:26
4
answers

Generate xml through a class, even without value in the property

I'm generating an xml through an existing class, for example [XmlRoot("pessoa")] public class pessoa { //[CPFValidation] [XmlElement("cpf")] public virtual string cpf { get; set; } [XmlElement("nome")] public virtual strin...
asked by 21.02.2014 / 18:11
0
answers

Receive data from arduino via serial in C # application

I need to make an application that sends and receives data from an arduino leonardo. I tried some examples of serial connection between C # and Arduino and in all instances I had the same problem, Arduino receives data sent by the application bu...
asked by 13.12.2018 / 23:00
0
answers

What is the difference between the X.509 and PKCS # 7 terms in digital certificates?

Via a WebApi .Net 4.6.1 I'm integrating with a service that requires data to be sent on a TLS 1.2 connection digitally signed using the PKCS#7 pattern, but when checking an integration example , I realized that the implementatio...
asked by 12.12.2018 / 18:47
1
answer

Object reference not set to an instance of an object

I created a DLL with the "Register COM Interop" option in C # where some WebServices from different prefectures are consumed. I use this DLL in a Windows Form C # test application where no error occurs. When using the DLL in a Delphi applicat...
asked by 04.02.2014 / 19:38
1
answer

Search for missing records range

Imagine the following situation: a table looks like this: Id (int) - Codigo (int) - Descricao (varchar) 1 - 01 - Descrição 1 2 - 03 - Descrição 2 3 - 04 - Descrição 3 4 - 05 -...
asked by 23.08.2018 / 15:18
1
answer

3 layers vs MVC

3 layers: DAL (Where is the model and operations with the bank BLL (Where is the business rule) Presentation (Usually the WEB) An example: DAL public class AlunoBanco { public void InserirAluno(Aluno aluno){ ......
asked by 22.09.2014 / 01:41
0
answers

How to make the player move on a slide in unity?

I'm new to unity and I'm doing the RogueLike 2D tutorial. By default the player will move, theoretically , using one of these coordinates per turn y+1, x+1, y-1, x-1 , or just one block at a time. And I want to know how I can get the...
asked by 23.07.2018 / 21:54