Questions tagged as 'lista'

1
answer

Display 2 dataTextField in a SelectList

Hello! I have a problem with making a selectlist display 2 values in textfield. I have the following SelectList that is stored in a viewbag: ViewBag.Account = new SelectList(new AccountBusiness().GetList<Account>(Util.AuxiliaryMethods.BM...
asked by 28.08.2018 / 15:01
1
answer

How to transform a vector list into R?

How to transform a vector list into R? The list is a set of words and numbers and I need to add the numbers in the list. mylist <- list ("2 tomates", "5 tomates", "9 tomates") If I want total tomatoes, how do I do it?     
asked by 26.05.2014 / 01:08
2
answers

EntityFramework .AsEnumerable () or .ToList ()?

In one of the projects I got I saw the following code, which implements a data-listing method of a given entity, but this listing is read-only: /// <summary> /// Listar todas entidades /// </summary> /// <returns></returns...
asked by 03.08.2016 / 20:23
2
answers

Graph possible paths python

I have a dictionary, where the key is a vertex and the value is a list of vertices adjacent to the vertex (key). dic = {'A':['B,'C'],'B':['A','C','D'],'C':['A','B','D'],'D':['B','C']} What I want is an array of all possible paths (from one...
asked by 05.06.2015 / 01:57
2
answers

How do I get the row and column contents of a ListListint list?

I have a list that simulates an array (or a two-dimensional array) that is structured as follows: List<List<int>> matriz = new List<List<int>>(); Since this matriz is initialized with the following values: m...
asked by 11.04.2018 / 04:06
1
answer

Bug when reorder list of React components

I have a component that loads a list of components <ComponenteReordenavel> that is rearranged according to the user's taste. The bug happens when I modify the style of this component and reorder again, the style always...
asked by 08.12.2016 / 18:54
1
answer

Pass List to a sub report and call it in the main report

I have a method that generates a pdf report in a certain directory, now I need to use a sub report, but I have a hard time understanding how I can pass List as a data source to that sub relatório display it in the main report. T...
asked by 20.05.2015 / 19:42
2
answers

Find the maximum and minimum number in list in a string

I have the following file: a = '1 0 10 2 3' I want to print the highest and lowest values, so I used max() and min() but it only counts the unit. I did this: a='joao 1 0 10 2 3' b=a.split() c=max(b[1:]) print(c) c=min(b[1:])...
asked by 29.11.2018 / 22:17
3
answers

How to compare two List and delete repeated fields?

How to compare lista1 and lista2 , excluding repeated items in one of them?     
asked by 09.01.2017 / 14:45
3
answers

Array with no size limit

ClsPessoa[] Pessoa = new ClsPessoa[10]; I'm new to C # and would like some help. How can I declare an array of a class as in the example, without inserting a size limit.     
asked by 11.10.2015 / 20:48