Questions tagged as 'c#'

2
answers

Map Enum with search conditions

I have a class that does the search conditions as follows: public enum EnumCondicao { [Display(Name = "Igual")] Igual, [Display(Name = "Diferente")] Diferente, [Display(Name = "Maior")] Maior, [Display(Name = "Menor...
asked by 03.05.2017 / 03:11
2
answers

Component for formatting HTML text

I'm looking for a component where the user can enter the desired text and format the text as they see fit. Something like the SO or image below. Does anyone know of any? Note: I'm using C # (Winforms)     
asked by 11.06.2015 / 19:17
1
answer

What are and how the following statements work on Web Forms pages:%%,% #%, and%:%

I do not know what they are, nor how to call them. Are tags, statements? What are they? In practice, I noticed some features. <% %> This statement accepts executable code, but does not return anything to the webpage....
asked by 18.02.2015 / 04:07
2
answers

Behavior of parameters in class constructor in C #

I'm having a question regarding the behavior of the parameters passed to the constructor of a class, are they by default ref / out or value? Searching about the behavior of parameters in common methods they are by default values, a...
asked by 30.09.2015 / 22:23
1
answer

How to filter a ListDictionarystring, object?

I have a list variable that is a List >. She has 108 items. The Matrix [0] list looks like this: What I wanted was for the variable ListMatrix to come only with the items in the Matrix list whose COD_OCUPACAO = 1 & COD_NIVE...
asked by 15.10.2015 / 16:44
2
answers

Displaying massive amount of data

From the moment we work with a very large amount of data (eg more than 3 million records), and we need to display this data on the screen while the user is using the page, always having the best performance possible. / p> Is partitioning thi...
asked by 26.09.2014 / 15:06
1
answer

How to use escape characters in a C # string?

I am not able to scan a file containing the EICAR (Standard File for Anti-Virus Scanning) characters, because it contains escape characters such as "\", "()", "[]". I need help identifying these characters in my program as being normal inside a...
asked by 17.10.2014 / 02:49
2
answers

How to insert Entities, related to others already existing, in the EntityFramework?

In case supposing an "EntityA" entity that references an entity "EntityB", I want to save it, but referencing an existing entity B ex: EntidadeA a = new EntidadeA(); EntidadeB b = new EntidadeB(); b.Id = 5;// id de entidade existente no banco...
asked by 08.12.2014 / 18:48
1
answer

IDE in Cloud for C # ASP.NET development

Does anyone know of any IDE in cloud for development in C # ASP.NET? I read something about a CODERUN, but I do not think it's active anymore, does anyone have any suggestions?     
asked by 10.10.2014 / 16:28
1
answer

Lock or release a controller according to some condition

I have a controller that should only be accessed if an attribute in my table is "true". Is there any way the user can click on that link, check if the attribute is true, and then release the access?     
asked by 19.10.2014 / 04:37