Questions tagged [enumeration]
The process of enumerating values, for example from some collection.
enumeration
1,909
questions
0
votes
1
answer
19
views
Collection.Count shows zero even though Collection.GetEnumerator.Current contains a reference after MoveNext()
Note: An answer in either VB.NET or C# will be fine. I have no preference for this Q&A.
I'm trying to test my networking code and I'm running into a very strange problem: the GatewayAddresses ...
0
votes
1
answer
41
views
Typst Report-Style Enumeration
I would like to modify Typst's #enum function to number every paragraph within my document following a technical report style.
For example
+ Paragraph 1
+ SubParagraph 1
+ Sub-SubParagraph 1
+ ...
-1
votes
1
answer
71
views
How to call a Swift enum function to get string in objc?
I have this enum in Swift SDK, and need to print the description as a debug message.
@objc public enum ResultCode : UInt16 {
case noError = 0x0000
@objc public func description() -> String ...
1
vote
2
answers
122
views
static java reflection - enum of fields of a class (pre-compilation)
is there a type of reflection in Java that provides simply an enum of the fields in a class?
The information is, afterall, "precompilation-static". Why should it not be compiled into the ...
1
vote
1
answer
57
views
Is enumeration over custom union type possible? [duplicate]
Having a disjoint union type like this:
type yolo = | A | B | C
Is it possible in OCaml to iterate/enumerate over each possible value of type yolo without prior knowledge of how many/what these ...
0
votes
1
answer
43
views
Managing enumeration members in header files
In an application I am developing, there is a header file responsible for the entire functions of an ADC, let's call it adc.h.
Where there is an enumeration indicating the input PINs used in the ADC.
...
0
votes
2
answers
88
views
Enumerate unique multiples of numbers
Suppose we're given an array of positive numbers M, say [3, 5, 7] and we want to enumerate all numbers which are multiple of any one of them, less than some upper bound, say K, so in this case 0, 3, 5,...
-2
votes
1
answer
155
views
Delphi - Binary OR values from an enumerated type
I have a variable declared from an enumerated type. I would like to binary OR values from this enumeration to the variable.
type
TValues = (vValue1 = $01, vValue2 = $02);
procedure BinaryOR;
var
...
0
votes
0
answers
5
views
How to collapsed record into one based on start date and end date of record in R
I have a dataframe that I'd like to have a column label collapse record based on 2 condition:
Overlapping: the second event start date is either the same with first event start date or between first ...
0
votes
3
answers
110
views
DropDownListFor selected value returns null in the Enum property Model on form POST in ASP.Net Core MVC
I have a form page with DropDownlistFor or select as below:
<select asp-for="LeaveType"
class="form-control" style="max-width:180px"
asp-items=&...
2
votes
0
answers
31
views
Seeking Efficient Enumeration Strategies for Graph Partitioning
I am currently working on a class project that involves partitioning a non-directed graph, possibly weighted, into p classes. The objective is to minimize the sum of the weights of the edges between ...
1
vote
1
answer
62
views
Trying to import csv string value, with variable within string? [duplicate]
I'm a bit stuck trying to use param values in a string, imported from within a CSV.
I've tried a few methods, and can't seem to enumerate the parameter within the string.
First of all I have a csv ...
-1
votes
1
answer
108
views
How do I get a list of possible names/values from System.Net.SecurityProtocolType [duplicate]
I wish to present a drop down list of the System.Net.SecurityProtocolType available on the server that the code is running from (The servers are different)
So I wish to do the working equivalent of
......
1
vote
1
answer
109
views
Efficient calculation of all permutations mapping a vector into another in Python?
Given two vectors, I would like to calculate (in Python) all permutations (as vectors of coordinates) which map the first vector into the second. The vectors are given as numpy arrays of the same ...
0
votes
1
answer
44
views
Enumerated with default value, but not name
public class Document {
@Id
@Column(name = "id")
@GeneratedValue
private Long id;
@Column(name = "type")
private Long subjectType;
@Column(name = &...