Questions tagged as 'c#'

2
answers

C # Difference between BeginAccept and AcceptAsync

What is the difference between the two asynchronous forms? Which has better performance by handling sockets and handling thousands of connections simultaneously? Example for BeginXXX: link Example for XXXAsync: link     
asked by 12.06.2014 / 00:59
1
answer

Working with Enums of type CHAR, using C # and Entity Framework

I would like to know how to map my entity that uses an Enum of type char through the Entity Framework, using FluentApi. I have the following Enum: public enum Zona { Norte = 'N', Sul = 'S' } And my Entity: public class L...
asked by 09.06.2017 / 15:31
1
answer

Get CPU usage of a process in int C #

I need to get CPU usage of a process that is a variable. Ex: var process = wait.exe And check the wait.exe, if it has reached 100 CPU usage. How can I do this?     
asked by 12.04.2017 / 15:50
1
answer

How to digitally sign a PDF in C #?

I need to digitally sign a PDF previously created. This PDF is being created through a Web Service that uses Office Interop to generate the from an Office Template. I already have access to the ICP Brasil Certificate , it was pu...
asked by 12.12.2016 / 11:24
1
answer

I can not make the nightmare character disappear after being killed

I'm following all the steps of a tutorial on creating the game Nightmare, videos made by channel "Playing with Nils", but after following all the steps, when I run the game and then I kill the zombunny (an enemy), instead of dying and disappea...
asked by 07.05.2015 / 22:51
1
answer

Task.Run always starts a new Thread?

When executing a list of tasks started through Task.Run, is it guaranteed that each one is executed on a different Thread? When reading the documentation, it seems to me that this is the default behavior, while doing the tests I was validatin...
asked by 10.08.2016 / 21:43
2
answers

Translating Identity en

I'm using Identity in my application MVC 5.2.3 Microsoft.AspNet.Identity.Core 2.2.1 I also installed the translation package for it Microsoft.AspNet.Identity.Core.pt-br 2.2.1 Microsoft.AspNet.Mvc.pt-br 5.2.3 Microsoft.Owin.p...
asked by 01.09.2017 / 19:59
1
answer

Xamarin - SQLite Join

I'm creating an app on xamarin, which generates a sales order, and stores it on my phone. I'm using SQLite to store the data, but I'm having trouble joining between my Order Items table and the Products table. I have both models below: [...
asked by 16.06.2016 / 16:34
1
answer

Error System.IndexOutOfRangeException

I'm having errors in Titular.Text of this form and I do not know how to solve it. public partial class Titular : Form { private Conta[] contas; private int quantidadeDeContas; public Titular() {...
asked by 06.09.2016 / 22:36
2
answers

Windows Universal Apps C ++ vs C #

What is the difference between C # and C ++ to develop universal apps? I saw that in the templates from Visual Studio 2015 to C++ there is a Cross Plataform group with app templates for android and ios. How does th...
asked by 11.04.2016 / 15:23