Questions tagged as '.net'

1
answer

Iterate an array (vector) via IEnumerator? For what reason?

In what case would it make sense for me to forgo an array using loops "normal" ( for/foreach/while ) via index to use IEnumerator as shown in Example 3? Example1 //Usando for int[] array = new int[]{1, 2, 3, 4, 5 };  ...
asked by 20.03.2017 / 12:10
1
answer

Block reading, opening and editing file

How to block a user's opening, reading, and editing of a file during the time the application is running? An application has a relatively long data collection period. This application reads data in real time. The data read is written to the f...
asked by 19.07.2017 / 05:00
3
answers

Understand "," as "." when formatting

My Visual Studio is misunderstanding what I type (console): using System; namespace Uri_CSharp { class URI { static void Main(string[] args) { double raio = double.Parse(Console.ReadLine()), area;...
asked by 17.07.2016 / 15:59
1
answer

How to put a ReadOnly column?

I'm trying to leave only one column of GridView as ReadOnly , I'm doing so: if (id_crm == 0) { textBox2.Text = Convert.ToString(cod_crm()); DataTable dat_itens = new DataTable();...
asked by 04.09.2016 / 18:06
1
answer

WPF documentation with pure C # code

WPF is the "new" one for development, not only desktop but also mobile. However, almost all of the material that is available on WPF is fully tied to the use of IDE and XAML. But XAML is an intermediate language, it is compiled into C # code,...
asked by 22.09.2016 / 17:13
2
answers

Inserting Single Quotes Null Field

I created a very simple application to simulate a small register of clients, but when testing the data manipulation by the application I could see in the database that the fields that are null in the register are inserted into the database with...
asked by 28.04.2016 / 23:04
1
answer

Store ListMenu In Memory or in Cookie

Good afternoon. I have an application that has a whole level of permission management for page access and a number of other settings. Always when a user authenticates, I mount a list with all the menus (links / pages) that this user can ac...
asked by 11.04.2016 / 20:36
1
answer

Get ArraySegment values

When creating a ArraySegment , I'd like to get the new array created, but when using: meuSegmento.Array; the original array is returned and not the created thread. string[] meuArray = {"stack", "overflow","em", "português"}; var...
asked by 18.02.2016 / 12:59
2
answers

Visual Studio 2015 Latch and not back when accessing page cshtml and inserted ""

People are very strange. In any project when I insert into a cshtml file a "<" the visual studio 2015 crashes and restarts, this happens in any WEB project, I've reinstalled it 3 times and it always happens. I just need to format the compu...
asked by 08.12.2015 / 01:38
3
answers

How to point the entity framework to another bank?

Hello, My Entity Framework always points to my local bank ... I have already tried to change the connection string passing the data from a database that is on another server and nothing happens it keeps pointing location even if I comment the...
asked by 10.12.2015 / 19:39