Questions tagged as '.net'

3
answers

When to use asynchronous or synchronous methods?

When should I use asynchronous or synchronous methods in controllers (Index, search, delete, create) ASP.NET MVC applications? Can I lose performance? In which situations should I use one or the other, could you give examples? If I have...
asked by 03.05.2017 / 03:33
3
answers

What is the difference between using single quotes and double quotation marks in C #?

In PHP, when we use single quotes or double quotation marks, both forms have the function of declaring a string . There is only one small difference. I'm now starting a C # study. When I tried to declare a string with single quotation mark...
asked by 28.05.2016 / 21:33
3
answers

What are Parallel.For and Parallel.ForEach loop?

I saw the use of Parallel.For and Parallel.ForEach in some places, I know they are loops , but I did not understand how and when to use them and I have my doubts. What are loop Parallel.For and Parallel.ForEach...
asked by 04.09.2017 / 14:38
2
answers

Nomenclature or language in lambda

We have this expression: var teste = meucotexto.minhatable.Where(x => x.meu_campo.....) How do I read this part x => x.meu_campo I read x is for x.my field or x for x.my field or something else?     
asked by 24.06.2014 / 14:10
1
answer

OWIN and OAuth What are they and how to use them?

I'm looking at WebApi tutorials with authentication / authorization and I came across these two concepts, although explained in the tutorials the definitions are not clear. Even if you search the web, the explanations in English are confusing...
asked by 25.07.2015 / 04:45
1
answer

Does the size of a variable name affect its weight?

There is a difference in size between this: string packet1234 = "123"; And that? string packert1234556 = "123";     
asked by 16.02.2015 / 21:56
6
answers

How to do a Split for when there is a letter in the string?

I'd like to make a string be split with .Split() every time there is a letter. Example: The string : 97A96D112A109X115T114H122D118Y128 A array would come with 9 values: { 97 96 112 109 115 114 122 118 128 } How...
asked by 01.06.2017 / 00:46
1
answer

What is a memory dump?

What is a dump of memory? How can it aid in the possible identification of an inconsistency in the code? How is the analysis performed?
asked by 03.08.2015 / 16:42
1
answer

What are closures and what is their use?

The answer to this lambda question What are lambda expressions? And what's the point in using them? talks about closures and expressions tree, however, does not have a clear example of what they are in fact and what their main use. So what are...
asked by 03.09.2014 / 22:11
2
answers

How to get a snippet of a string?

I have a string like this: ~/Areas/Teste/Views/home/index.cshtml I only need the word next to ~/Areas/ , in the case Teste (remembering that word may vary in size). How do I?     
asked by 09.10.2014 / 15:56