Questions tagged as 'c#'

1
answer

WCF parameter out bool

I created a WebService WCF , and in the interface IService1.cs I put the signature of the methods [ServiceContract] public interface IService1 { [OperationContract] bool insertConsulta(BConsulta bCos); [OperationContract] boo...
asked by 21.05.2016 / 18:33
1
answer

Custom installation path through SETUP

When I publish the application of windows form, it already generates Setup by Visual Studio 2010 which, when running, installs in "program files" in Windows 7 the Installation. I would like to create a directory named c: \ CartorioScanner \ and...
asked by 19.05.2016 / 19:14
1
answer

Alert Resharper Access to modified closure

Implicitly captured closures or Access to modified closure It is a type of alert that Resharper shows in the code below, I would like to better understand this type of alert and what kind of problem it may cause in the cod...
asked by 05.10.2016 / 04:27
1
answer

Bidirectional Communication - How to get status?

Library that I use: link Following code: Server: static async Task Run() { var listenPort = 11000; var listener = new TcpSocketListener(); listener.ConnectionReceived += async (sender, args) => { var client...
asked by 19.03.2018 / 20:59
2
answers

I need to get the Task Manager process description

I need to get the name of the process that is active on the screen, however I need to bring the same one appears in the Task Manager in description. For example if I use processName it will bring "Chrome" I need it to be description =...
asked by 23.05.2016 / 15:56
1
answer

Problem accessing List of a query

I'm starting today with Entity-FrameWork but I came across a problem that I think is simple, but I could not find the answer anywhere, maybe because I was not really sure what to look for. The code is as follows: using(var db = new...
asked by 12.05.2016 / 23:17
1
answer

Set time zone for the entire project

I recently hosted an application on a North American server, so the dates are outside the Brazilian timezone. This way, I would like to know if there is a way to set the time zone only once so that every time you use DateTime.Now in a var...
asked by 18.07.2016 / 15:05
1
answer

Windows user in IIS

I'm trying to log on to a SQL Server 2008 database, with the windows user accessing my published site in IIS. I've configured Web.Config for windows authentication, set up the application pool, leaving identificador equal Aplication...
asked by 04.05.2016 / 14:43
2
answers

How to upload .txt file and save to a directory using c # .net mvc?

I would like to upload text files where I select N .txt files and save them to a directory I have specified in the application; I made an example that was on the internet but I could not get the files in my action. Action: [HttpPost]...
asked by 30.03.2016 / 16:17
2
answers

Collision and reaction Unity 3d

I have a doubt in a script, I'm creating a game made in 3d unity. The question is, how do I identify the collision between 2 objects and add a jump action to one of those objects, if anyone can help, I thank you very much. Code - does not wor...
asked by 02.04.2016 / 19:29