Questions tagged as 'lista'

1
answer

Bank query for a List in C # WPF

I need to make a query in the database, I made this code for connection, but I do not know how to proceed to put this information in a list<String> SqlConnection conexao = new SqlConnection(_stringConexao); SqlCommand comando = ne...
asked by 22.12.2014 / 11:57
2
answers

Count duplicate values in list

I have ArrayList with multiple numbers inside it. I need to identify how many times each number appears and then eliminate redundancies. I was able to eliminate redundancies, but I'm having great problems in identifying how many of them e...
asked by 17.05.2015 / 00:51
1
answer

Feed list gives "Index out of range"

On my system, I need to return the number of questions the student missed on a given topic. To achieve this, I tried creating a class that has two attributes: Tema and QteErros and instantiated it in my controller. public ActionR...
asked by 14.10.2015 / 02:25
1
answer

Sorting a second list according to the sorting of the first list

I have the following (silly example): lista=[[3,6,4,2,7],[8,4,6,4,3]] I want to put lista[0] in ascending order, modifying lista[1] according to lista[0] . To illustrate what I want below: lista_ordenada=[[2,3,4,6,7],[...
asked by 02.10.2015 / 21:51
1
answer

How to access a list of another class in C #

I'm trying to access the ContactList of the Contact class in the ContactList class to view. The problem is that although the list is populated in Contact, it is empty in the Contact List. public class Contato { string N...
asked by 31.10.2015 / 14:20
1
answer

Xamarin - Picker View with list

I'm creating an application with Xamarin Forms and I came across a problem. In one of my Views I need to have an element filled with a list coming from a web service. In the case, in my ViewModel I was able to connect to the web service and fill...
asked by 13.06.2018 / 21:13
2
answers

How to create a linked dynamic list inside another dynamic list in C?

I'm having a hard time getting a dynamically linked list inside another using data structure. I can create a dynamic list, but I can not create another one within it. To illustrate what I mean: I have a list of Bands ; each band is a li...
asked by 03.05.2015 / 01:12
2
answers

Concatenating variables in the Django template

Talk to people, good morning, I have a problem. I'm running a lista but I want concatenar my list that I'm calling in template as {{ list }} and {{ forloop.counter0 }} so that in my is only displayed 1 l...
asked by 05.10.2018 / 17:05
1
answer

How to delete objects from a list?

I have the following code: using (Context contexto = new Context()) { List<Cliente> listCliente = contexto.Cliente.Where(x => x.Status == 0).ToList(); } How do I delete this result from the database? Remembering that I have num...
asked by 13.06.2017 / 15:03
1
answer

How to move ArrayList with child class

Next, I have a ArrayList of type Student (which is an abstract class), and I have two child classes ( EstudanteGraduacao and EstudantePosGraduacao ), when I add them to ArrayList is quiet, but how do I go through it wi...
asked by 20.05.2015 / 07:38