Questions tagged as 'c#'

1
answer

TcpClient only receives the first message while connected

I'm developing a hobby program to understand how TcpClient works. Well, I'm doing a program that from time to time gets a package from a secondary program and sends an OK back, confirming that the connection is still established. On...
asked by 25.12.2016 / 17:53
1
answer

Send External Login Data to Controller

I need to login through Facebook, I have the login page, which renders a @Html.Partial _LoginExternal Follow the code of the two: @using EuVotoAf.Models @model LoginViewModel @{ ViewBag.Title = "Log in"; } <div id="loginbox"...
asked by 25.01.2017 / 13:46
1
answer

Line of code in Unit Test that is not accepted by code coverage

I have a test routine where a particular line of code is not supported by the coverage. ThisisatesttoreturntheDefaultValuesincetheobjectthatcallsitisnull.Thisisthemethodyouaretestingpublic static TResult IfNotNull<TObject, TResult>(thi...
asked by 25.01.2017 / 12:18
2
answers

Differences between Jagged Array and Multidimensional Array in C #?

Is there a difference in these arrays in C #? int[][][] int[,,] What I see is the same thing, but C # can not cast from one to another.     
asked by 07.08.2016 / 18:52
1
answer

Difference between Task and Thread

I need to create a C # executable and I have the doubts: Do with thread or do with task ? In practice is there any difference between using Task and the "traditional" multi-thread ?? Is it true that a task...
asked by 13.04.2016 / 18:57
0
answers

Apply rotation only on X and Z axes

I'm trying to rotate an object only on the X and Z axes, keeping the original value on the Y axis, but this way the rotation simply does not work, or it gets totally misaligned. RaycastHit hit; if (Physics.Raycast(transform.position, -Vector3.u...
asked by 08.12.2016 / 12:24
1
answer

Problem in displaying the wpf datagrid control

I'm experiencing two issues with the wpf datagrid control. The first one: I have the main form, where some data is displayed, and another where the data is inserted. When I click to enter the data and the first form was hidden the control column...
asked by 08.12.2016 / 22:37
1
answer

Get procedure return in Oracle

I need to execute a procedure in the database (Oracle) that returns me a character (S or N), I'm using the ODP.NET driver, I've tried everything and I could not do this, I even looked at several answers right here in SO PT and OS EN as well....
asked by 07.12.2016 / 17:56
1
answer

Using Access to Export in Excel, Parameterized Query

I'm using the Access database, I need to export a query to excel. My problem is as follows: I am using a parameterized query in Access for the access itself to export to excel. When I make the call to export, it opens the screen to ente...
asked by 08.12.2016 / 19:52
0
answers

Mapping problems in Microsoft.EntityFrameworkCore

I'm trying to create two Mappings in ManyToOne using annotation of Entity Framework , however I'm not getting it, if I take either of the two mappings and leave the other, it works however if I leave both of the error. The project is being...
asked by 07.01.2017 / 10:34