Questions tagged as 'c#'

1
answer

WPF Form is going behind all windows when a ComboBox is selected

My form WPF works perfectly, but in a specific%%, after the action of selecting, the form is going behind all windows without further explanation, and this does not happen in any other form, could anyone explain why? The image before c...
asked by 23.12.2013 / 19:19
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

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
2
answers

What's the difference between SaveChanges and SubmitChanges?

Within the context Entity Framework what is the difference between SaveChanges and SubmitChanges ? When should I use one or the other?     
asked by 07.10.2016 / 20:03
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
2
answers

Dynamic declaration in attribute property

As part of an ORM microplatform I'm developing, I'm defining a generic class that implements exclusively tight coupling (1 record x 1 object). public class Course : MicroEntity<Course> { public string fullname { get; set; } publ...
asked by 06.10.2015 / 19:56
1
answer

Order By with List

Is it possible to make a OrderBy in a List<> setting the value for comparison? Example: mRel.OrderBy(s => s.Status == EnumModel.StatusGeral.Novo).ToList() My Code: List<MotivosModel.MotivosRel> mRel = Carre...
asked by 04.05.2017 / 17:43
1
answer

How to get information from a .CPL?

I wanted to make a program that would display all control panel items. For this I need to query some registry keys, but there are programs that still use cpl files to store the information. I've heard that cpl are DLL's written in C ++ but I...
asked by 30.01.2015 / 21:21