Top "Enumeration" questions

The process of enumerating values, for example from some collection.

Entity Framework enumerating SqlQuery result

I have strange error while I am trying to view results of SqlQuery: var sql = "SELECT @someParam"; var someParamSqlParameter = new …

c# enumeration entity-framework-4.3
Get every n-elements of array

How to select every n-elements (e.g. six) of an array using Ruby 1.9+? Example: a = [0, 1, 2, 3, 4, ... , 33] # solution # => [[0, 1, 2, 3, 4, 5], [6, 7, 8, 9, 10, 11], ... ]

arrays ruby iteration enumeration
The foreach identifier and closures

In the two following snippets, is the first one safe or must you do the second one? By safe I …

c# enumeration closures
How to convert Enumeration to Seq/List in scala?

I'm writing a servlet, and need to get all parameters from the request. I found request.getParameterNames returns a java.…

scala enumeration
How to use "enumerateChildNodesWithName" with Swift in SpriteKit?

I'm using Swift to make a game in SpriteKit. In Objective-C I could use the following method: (void)enumerateChildNodesWithName:(NSString *)…

objective-c-blocks swift enumeration
Get the representation value of an enumeration type in Ada

I need to get the numeric value asociated with a value of an enumerated type in Ada. Not the position …

enumeration ada
Large flags enumerations in C#

Hey everyone, got a quick question that I can't seem to find anything about... I'm working on a project that …

c# enumeration endianness flags
How to stop enumerateObjectsUsingBlock Swift

How do I stop a block enumeration? myArray.enumerateObjectsUsingBlock( { object, index, stop in //how do I stop the enumeration in …

objective-c nsarray block swift enumeration
Enumeration value 'SHKShareTypeUndefined' not handled in switch

I get the warning Enumeration value 'SHKShareTypeUndefined' not handled in switch in the below code. I bolded the relevant line …

objective-c ios enumeration sharekit
How solve compiler enum redeclaration conflict

Consider the following C++ enumerations: enum Identity { UNKNOWN = 1, CHECKED = 2, UNCHECKED = 3 }; enum Status { UNKNOWN = 0, PENDING = 1, APPROVED = 2, UNAPPROVED = 3 }; The Compiler conflicted the …

c++ enums compiler-errors enumeration redeclaration