Questions tagged as 'c#'

1
answer

Asp.Net Identity, how to use only Roles or Claims?

Returning to the same subject: ASP.NET Identity with EntityFramework . Regardless of the size or planning of my project, if I need to use only the Roles part or just the Claims , is this possible? And most of all, how? Finally, i...
asked by 15.09.2014 / 03:16
1
answer

Difference between ICollection, IList and List?

What is the difference between ICollection , IList and List ? When should I use each one specifically?     
asked by 23.07.2015 / 17:48
4
answers

How do I return 2 or more values at a time in a method?

It is common to see examples of methods returning one value at a time. I've seen cases where you need to create a class just to package the data and to return more values.    Using generic classes would be the best way to return 2 or more  ...
asked by 06.04.2017 / 13:40
3
answers

What is the difference between & & & & &?

I was doing a simple code with if of two conditions. Everything worked fine and after I read it, I realized I had written condicao & condicao2 instead of using && . Even with this " typo " the code is fully func...
asked by 16.03.2017 / 18:01
2
answers

How to do a spell check in C #?

I need to do an analysis of the words contained in a database. The analysis consists of promoting a spell check only, showing a gridview with the misspelled words. I never developed anything like it, I wanted a light. I can start the examp...
asked by 07.03.2014 / 20:58
7
answers

How to convert a JSON response to an object in C #?

I'm making a request and getting a JSON like this: { "id": "1000000000000000", "name": "BrunoLM", "first_name": "Bruno", "last_name": "X", "link": "http://stackoverflow.com/users/340760/brunolm", "username": "brunolm", "bio...
asked by 20.12.2013 / 13:39
2
answers

ASP.NET MVC Paging

I currently work with data like this: The context returns me all the Bank Customers public IEnumerable<Clientes> ListarTodos() { return contexto.Clientes.ToList(); } In the controller I call ListAll () pub...
asked by 07.07.2014 / 16:27
3
answers

Deserialize JSON Array in an Object Array

Good afternoon, I decided to ask because I have been caught in this for 3 days and no matter how much I have searched, I have not found a solution to my problem. Access a Web Service via C #, HttpClient, and get a Json in the following format:...
asked by 29.01.2016 / 18:44
3
answers

Connect LED via USB [closed]

How can I send a 5V pulse via a USB? Imagine a USB cable that has 4 wires (one generates 5V and the other negative pole). The two central strands remain. My question is how can I read via Delphi that these cables are getting 5V? Objective...
asked by 29.01.2015 / 16:18
1
answer

What is the correct way to call C # versions?

There seems to be some confusion with the naming of the C # versions and the technologies that are related to it. Is there a C # 2005? Or a C # 3.5? What is the relationship of C # versions with .Net, Visual Studio, etc.? There are books...
asked by 17.06.2014 / 18:08