Questions tagged as 'lista'

3
answers

Difference between Any, Contains and Exists

What is the difference between Any , Contains and Exists ? What is the appropriate context for each of them? (Examples of use) What are the advantages and disadvantages?     
asked by 10.12.2015 / 13:29
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
2
answers

ArrayList x List

What's the difference between declaring ArrayList and List for lists in Java ? What are the advantages of using one or the other?     
asked by 09.07.2015 / 13:08
3
answers

Working with lists without using Array () in PHP

I know that in PHP for almost every type of list, we work with Array() , but is this the only way to work with lists in PHP? Is there any other way to work with lists of objects in PHP, similar to the Collections classes ( List ,...
asked by 26.01.2016 / 14:33
3
answers

In a list, what is the difference between append and extend?

In list in Python, there are methods append and extend . What's the difference between them and when should I use each?     
asked by 09.12.2016 / 20:38
2
answers

Sort ListT using regex

I have a List of directories that is sorted by name: List<DirectoryInfo> dirs = parentdir.GetDirectories().OrderBy(c => c.Name).ToList(); The problem is that I have folders whose names are numbers separated by periods (as if...
asked by 10.04.2015 / 19:43
3
answers

How to convert a string to Listint

I have the following variable and would like to convert it to an integer list: string variavel = "1,2,3"; Is there a way to convert it to a list of integers?     
asked by 06.08.2015 / 14:16
1
answer

How to compare two ArrayList and get the values shared by both?

I have two classes, they are: Class FilterCity: public class FiltroCidade { private int idCandidato; private List<String> cidades; public FiltroCidade(){ } public int getIdCandidato() { return idCandidato;...
asked by 04.11.2016 / 16:53
2
answers

How to edit a list in C #?

I want to edit a customer record in which I can already create a record, consult and remove it. But I have no idea how to edit just a few items without losing others. class Program { static List<Cliente> ClienteList = new List<Cli...
asked by 15.12.2014 / 12:42
2
answers

What is the main difference between a Tuple and a List?

What are the differences between Tuple and List in Python ? Example: >a = [1, 2, 3] # [1, 2, 3] >b = (1, 2, 3) # (1, 2, 3) The Tuple , grotesquely speaking, is a constant that accepts List ?     
asked by 03.03.2015 / 16:12