Questions tagged as 'c#'

1
answer

How to set position of objects in form in full screen

how to define where each component of my form gets when it is in full screen. (How much do you do the form it gets in a way, how much you execute the form is full screen (as I put it) but the components we centralized are in the wrong place) Can...
asked by 08.12.2017 / 18:02
1
answer

Error in Visual Studio 2015 Update 3 Can not Remove Breakpoint

In my project I have a solid breakpoint in Visual Studio that I can not remove. I can add other breakpoints. Some removed, but some did not. Does anyone know how to solve this?     
asked by 07.12.2017 / 13:39
1
answer

Subtract date from a DateTime [duplicate]

I need to get current date and subtract 3 months. It was doing conversions and subtracting 3 but going to go wrong at the turn of the year, in January for example it will result in month -2. I think there is a better way to do this.    ...
asked by 08.12.2017 / 13:52
1
answer

On how many threads should I split a task? [closed]

I'm developing an application in C #, one of my functions can be run with multiple threads. But how many should I use? If the processor has 4 cores, is there an advantage in using more than 4 threads?     
asked by 09.12.2017 / 15:06
1
answer

Error accessing the CreateMap property of AutoMapper 6.2.2

I'm practicing on a simple example that I found in net on the subject. I just believe that it is in an older version of AutoMapper and therefore I can not access the CreateMap property when I call the Mapper class. It look...
asked by 08.12.2017 / 22:39
1
answer

Read XML file, server returning error

I wrote a code to read RSS feed that works fine. If you access this URL you will see that it returns an XML in the browser, but when running in my code it generates an internal error in the server and I do not understand why. Can someone help...
asked by 06.12.2017 / 21:26
1
answer

Get part of a string with Regular Expression - C #

Based on the string "Plane Liberty Company +50 - 043-98965-2784 (058 / POS / SMP)", I need to get the part of "043-98965-2784". I noticed that in the txt file I'm using, the numbers follow the pattern "000-00000-0000". Could anyone help me...
asked by 31.10.2017 / 15:40
1
answer

Why are boolean values converted to string in camel case in C #?

Today I came across a peculiarity of C # which I had never stopped to pay attention to: When converting a value bool to string , the result is a text in camel case : string verdadeiro = true.ToString(); //Converte para True st...
asked by 05.09.2017 / 20:16
1
answer

Relationship 1: N check date, difference 6 month

I'm developing a SQL Server procedure, which lists two tables: WhereaprocesshasN-statements,Ineedtoreturnthefollowingdata:allProcessNumbersthatarewiththeIrrecuperavel(int)=1columnandthe"last" date entered in the Process table for that% Proce...
asked by 28.11.2017 / 17:10
1
answer

An unhandled exception occured. I can not understand this message, no detail comes

Personal this message:    An unhandled exception occured. It always happens when I try to consume my service REST . I first made an example, copying it from Macoratti and it worked. So I adapted to my service and it did not work,...
asked by 03.09.2017 / 15:25