No announcements
Found 1127503 threads
-
0 Votes
Change ToDictionary to ToList
new Constraint { Id = (Int32)rc.Element("ConstraintId"), Value = (String)rc.Element("Value") }),Answered | 1 Replies | 2944 Views | Created by MDMoura - Wednesday, April 28, 2010 9:15 PM | Last reply by Louis.fr - Thursday, April 29, 2010 12:21 AM -
0 Votes
Linq to sql ToList Method efficiency
If someObj is an IEnumerable<long>, calling ToList() or ToList<long>() is exactly the same thing.Answered | 5 Replies | 4006 Views | Created by nccsbim071 - Tuesday, May 25, 2010 10:02 AM | Last reply by Louis.fr - Monday, May 31, 2010 12:30 PM -
0 Votes
Linq join ToList()
List<MappingAgency> Agencies = (from resultMA in DiEntity.MappingAgency join resultMG in ...Answered | 2 Replies | 1820 Views | Created by T junky - Tuesday, June 4, 2013 9:20 PM | Last reply by John Clarkson - Wednesday, June 5, 2013 3:46 PM -
1 Votes
String.Split('*').ToList() in .net framework 2
I have a sample string: "123*0*0121*123" String.Split('*').ToList() is available in .net framework 3.5SP1 What's the similar one in .net ...Answered | 1 Replies | 3935 Views | Created by CodesCrawler - Tuesday, August 4, 2009 5:21 PM | Last reply by JohnGrove - Tuesday, August 4, 2009 5:25 PM -
2 Votes
ObjectQuery does not contain a definition for 'ToList'
I would recommend changing the name of the EntitySet or Entity, so they are not the same.Answered | 5 Replies | 13802 Views | Created by jasonxz - Wednesday, March 26, 2008 11:02 AM | Last reply by Alex D James - MSFT - Thursday, March 27, 2008 1:33 AM -
0 Votes
Microsoft.SharePoint.SPListItemCollection' does not contain a definition for 'toList' and no extension method 'toList' accepting a first argument of type 'Microsoft.SharePoint.SPListItemCollection' could be found
As the message says: ToList(); is a method that does not exist on the object SPListItemCollection, nor is there an extention method with that name (unless you make it first)My blog on WSS / ...Answered | 3 Replies | 9616 Views | Created by stenloves - Wednesday, April 15, 2009 2:14 AM | Last reply by Jeroen Van Bastelaere - Wednesday, April 15, 2009 10:51 AM -
1 Votes
or ToList()?
For .ToList(), it'll force the code to actually fetch data and stop being lazy, so it's helpful to call this method before you start to loop data.Answered | 5 Replies | 57935 Views | Created by Maximusdm - Monday, October 17, 2011 11:16 PM | Last reply by cheong00 - Wednesday, December 4, 2013 6:04 AM -
0 Votes
how to convert an ISingleResult Tolist
I used stored procedures to impliment select functions MicrosoftSQL but when i try to excute the method that calls the stored procedures select function i get an convertion ...Answered | 1 Replies | 5833 Views | Created by 16122010 - Wednesday, December 14, 2011 9:14 AM | Last reply by darnold924 - Wednesday, December 14, 2011 3:46 PM -
2 Votes
Linq help with IEnumerable<KeyValuePair<string, string>> to a Dictionary<string, List<string>>
func.Key, (key, list) => new { Key =& ...Answered | 4 Replies | 8807 Views | Created by Ritmo2k - Tuesday, January 13, 2015 10:26 PM | Last reply by Ritmo2k - Wednesday, January 14, 2015 11:18 PM -
3 Votes
C# can you tell the different of Method of ToList() and ToArray() in LINQ?
ToArray() and ToList() are 2 methods used when utilizing LINQ.Answered | 3 Replies | 3935 Views | Created by 破綻 - Monday, April 25, 2011 5:28 AM | Last reply by Nabil Shaik - Monday, April 25, 2011 6:35 PM -
1 Votes
ToDictionary, ObservableDictionary and Lazy Resources
Do you think the object created by .ToDictionary() should perhaps be a connectable observable?Discussion | 4 Replies | 10074 Views | Created by Dave Sexton - Sunday, April 11, 2010 2:44 AM | Last reply by Dave Sexton - Friday, July 2, 2010 5:41 PM -
3 Votes
Linq or ToDictionary statement help
var dic2 = (from d in _dropList.OfType<IProducer>() select new { Number = d.ProducerNumber, Name = d.ProducerName }) ...Answered | 9 Replies | 4822 Views | Created by helpdevelop - Friday, January 11, 2013 11:51 PM | Last reply by helpdevelop - Monday, January 14, 2013 11:13 PM -
1 Votes
Using ToDictionary to create a copy of a dictionary
Think its just that the overload of ToDictionary you used isn't enough.Answered | 3 Replies | 2775 Views | Created by Andrew Ch. _ - Friday, February 24, 2017 3:10 PM | Last reply by - Saturday, February 25, 2017 6:16 AM -
0 Votes
Use of ToDictionary
[]>(); string[] applications = ssMenus.Select(s => s.Application_Code).Distinct().ToArray(); foreach (string application in app ...Answered | 1 Replies | 4733 Views | Created by davidbitton - Friday, January 30, 2009 9:58 PM | Last reply by davidbitton - Friday, January 30, 2009 10:34 PM -
6 Votes
Split List<T> based on key?
Just List<Person> persons = GetPersons(); var personsByDepartment = persons.GroupBy(p => p.Dept).ToDictionary( g => g.Key, g => ...Answered | 7 Replies | 499 Views | Created by The real Slartibartfast - Thursday, October 29, 2015 7:45 PM | Last reply by The real Slartibartfast - Thursday, October 29, 2015 10:14 PM -
1 Votes
Dictionary. Item not added. What am I doing wrong?
Each time you enumerate 'jobs', you create new JobView objects and lose the changes you made.Answered | 8 Replies | 1178 Views | Created by MDMoura - Monday, November 7, 2011 1:16 PM | Last reply by Louis.fr - Monday, November 7, 2011 3:37 PM -
0 Votes
LINQ toList
int> distinctAges = ages.Distinct().ToList(); } } If possible, just please directly post ...Answered | 9 Replies | 39 Views | Created by Anonymous - Thursday, November 22, 2012 7:45 AM | Last reply by Anonymous - Friday, November 23, 2012 3:52 AM -
2 Votes
Split string to Dictionary<string,string>
Then I call Cast<Match> to get access to the Match methods and finally ToDictionary constructs a dictionary.Answered | 7 Replies | 11156 Views | Created by Alphapage - Thursday, January 31, 2013 2:50 PM | Last reply by Wyck - Thursday, January 31, 2013 8:45 PM -
3 Votes
Error on .toList()
DbQuery is an EF type and does implement IEnumerable<T> so ToList will work correctly.Answered | 14 Replies | 1641 Views | Created by NDDTs - Wednesday, August 12, 2015 4:19 PM | Last reply by NDDTs - Friday, August 14, 2015 2:31 PM -
0 Votes
Dictionary, change the value of the key with using LambdaExpressions
Nothing else - as said; to understand how it can be done changing values, based on some key.Answered | 11 Replies | 12258 Views | Created by Programming 2011 - Wednesday, March 23, 2011 11:47 AM | Last reply by Programming 2011 - Thursday, March 24, 2011 6:59 PM - Items 1 to 20 of 1127503 Next ›
No announcements