Omgili - forum search, search forums  
  

Discussions about collection of values

Displaying 1 - 10 out of 123,094 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi, What is the method in LINQ to supply a collection of values and check if any/all of these values are in a collection? Thanks
Started by on , 4 posts by 4 people.  
While there's nothing easy that is built in...you.
I would use Intersect : Produces the set intersection of two sequences by using the default equality comparer to compare values.
Of values in another.
How do I, without using any loop, modify the values in a collection to get a new collection with the modified values? For example, I'm having a Collection<String> and want to surround all Strings by parentheses. With a loop I would do this: Iterable...
Started by on , 10 posts by 9 people.  
Any loop, modify the values in a collection to get a new collection with the modified values? Why google collection library Lists.trasform : List<String> out = Lists.transform(in, new;T> collection) ....
In a .Net 3.5 (Windows) service, I would like to store a small collection of values in the config file. Basically, I need to allow admins to add and remove values from this small collection. What do I need to add to the config file to store a collection...
Started by on , 5 posts by 5 people.  
This will work pretty well for standard key-value pairs a custom configuration....
My.Settings.Save() If the number of values is small and the names associated with them are fixed, you the ConfigurationManager .AppSettings collection.
Ask your Facebook Friends
Is it possible to allow duplicate values in the Set collection? Is there any way to make the elements unique and have some copies of them? Is there any functions for Set collection for having duplicate values in it?
Started by on , 9 posts by 9 people.  
NO chance.....
A set is defined clearly to us.
I don't think so Google collections I don't believe that you can have duplicate values within a set.
You may be better off using an ArrayList.
As a collection of unique values.
I have IQueryable<someClass> baseList and List<someOtherClass> someData What I want to do is update attributes in some items in baseList. For every item in someData, I want to find the corresponding item in baselist and update a property of...
Started by on , 5 posts by 5 people.  
Admittedly you might want to perform some appropriate query to get baseList into an efficient... .
That means it'll be fine to use LINQ to find the corresponding item, but for the modification you should be using iteration .
LINQ is for querying - not for updating.
I have an Array Collection with any number of Objects. I know each Object has a given property. Is there an easy (aka "built-in") way to get an Array of all the values of that property in the Collection? For instance, let's say I have the following Collection...
Started by on , 3 posts by 3 people.  
According to the docs the ArrayCollection does not keep the keys separate from the values.
I have a method which summarizes a collection of decimal values using a method similar to this... Dim _amountCollection as New List(Of Decimal) _amountCollection.Add(145.12D) _amountCollection.Add(11.32D) _amountCollection.Add(6547.07D) Dim _totalAmount...
Started by on , 10 posts by 10 people.  
For 2 decimal places.
End Class If these are currency values, consider using scaled integers.
From each individual collection? Then when a collection changes you only have to sum up that collection..
I'm not sure if this is a bug in the DefaultModelBinder class or what. But UpdateModel usually doesn't change any values of the model except the ones it found a match for. Take a look at the following: [AcceptVerbs(HttpVerbs.Post)] public ViewResult Edit...
Started by on , 4 posts by 4 people.  
And so, only the values that are....
That's what causes the values to be reset.
I found: The class determines we are trying to bind a collection so it calls the method and creates a new instance of the model type if that is the case.
I have an array collection that I would like to limit to say 100 items. I tried setting up a filter function where the return was: return (myAC.getItemIndex(item) > 100); but the value was always -1. For whatever reason it couldn't find the item, even...
Started by on , 5 posts by 5 people.  
Since you're.
Try something like this: myAc = new the filtering is breaking because getItemIndex changes as you filter the array collection.
The ICollectionView or IList methods to modify the collection.
Lets say I have a collection of Messages which has the properties "UserID" (int) and "Unread" (bool). How can I use LINQ extension methods to set Unread = false, for any Message in the collection in whose UserID = 5? So, I know I can do something like...
Started by on , 6 posts by 6 people.  
To use a Linq statement to accomplish this, create a copy the collection using the ToList() method.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
stamps collection value stamps collection   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost