indexer Questions
5
Is it currently possible to implement an indexer on a class in TypeScript?
class MyCollection {
[name: string]: MyType;
}
This doesn't compile. I can specify an indexer on an interface, of cou...
Gertrude asked 12/2, 2013 at 20:52
2
Solved
I came across a Powershell hash table article and it used .Get_Item() and .Set_Item().
Two questions:
1) What's the mechanism that allows syntax of .Get_Item() and .Set_Item() to work?
2) What P...
Beau asked 13/5, 2014 at 19:7
3
I would like to know what the difference is between reindexAll() and reindexEverything() in Magento indexer?
Overspend asked 6/12, 2014 at 10:56
4
I'm using Eclipse CDT 2020-06 (but this has happened to me with earlier versions.)
Sometimes, the Eclipse CDT gets stuck parsing some file. The percentage indicator doesn't advance; and pressing th...
Webby asked 16/8, 2020 at 21:57
1
Solved
I was wondering how come some blocks exist but some don't? It seems like they get skipped and I'm unsure as to why. For example:
87868936 exists and so does 87868938 but 87868938 does not. Thanks!
...
Gramme asked 20/2, 2022 at 18:17
3
I have a makefile project comprised of many source, header and other files, which I am trying to convert to an Eclipse "native" project. The problem that the Indexer reports errors and warning on f...
Assignation asked 8/7, 2015 at 17:51
5
Solved
I have a workspace with multiple projects, which all compile with no problems. However, some of the projects are giving a lot of warnings in the editor about unresolved symbols, due to unresolved i...
Aerography asked 30/8, 2012 at 9:45
8
Solved
Is it possible to have something like the following:
class C
{
public Foo Foos[int i]
{
...
}
public Bar Bars[int i]
{
...
}
}
If not, then are what are some of the ways I can achieve t...
Prinz asked 10/1, 2009 at 17:6
7
Solved
Why are static indexers disallowed in C#? I see no reason why they should not be allowed and furthermore they could be very useful.
For example:
public static class ConfigurationManager
{
publi...
Dyad asked 30/12, 2008 at 19:33
8
Solved
I configured a C++11 project in Eclipse CDT to use gcc-4.7. It is not the default compiler on my system, which does not support C++11. In order for compilation to work, I need to pass the flag -std...
2
In order to set up C++11 for specific projects, I'm required to add -std=c++11 to the CDT GCC Built-in Compiler Settings under Project -> Properties -> C/C++ General -> Preprocessor Include Paths, ...
1
Am I doing something wrong here, or as of C# 7.2 Indexers that return by ref and allow set are not supported?
Works:
public ref byte this[int index] {
get {
return ref bytes[index];
}
}
Work...
2
Extension Methods for Indexers, would they be good ?
I was playing around with some code that re-hydrates POCO's.
The code iterates around rows returned from a SqlDataReader and and uses r...
Heterogenesis asked 1/3, 2009 at 15:36
2
Solved
I have this list of cars
ICollection<Cars> Cars
and I also have a single car object, which I know is in the ICollection how do I get the index/position of the car in the list? I need to ad...
Filose asked 15/11, 2017 at 15:13
10
I'd like to use indexers more, but I'm not sure when to use them. All I've found online are examples that use classes like MyClass and IndexerClass.
What about in a school system where there are S...
2
Solved
I tried to do something like this but this doesn't work:
class Garage
{
private List<Car> cars = new List<Car>();
public Car this[int i]
{
get { return cars[i]; }
}
//...
}
...
14
Solved
I've seen lot of examples for c# Indexers, but in what way will it help me in real life situations.
I know the C# guru wouldn't have added this if it wasn't a serious feature, but i cant think of ...
4
Solved
As the title says my Catalog URL rewrites indexer is stuck on processing.
I've tried everything and I just can't find a solution to this. Does anyone know a solid fix for this?
I've tried truncat...
4
Solved
While perusing through my organization's source repository I came across this little gem:
RawParameterStorage[!ParameterWorkingIdx][ParameterDataOffset] = ...
Is this valid code? (It compiles) W...
Zee asked 13/9, 2016 at 13:42
1
Solved
I stumbled on the fact that the indexer this[int index] { get; } works differently for an array of structs than it does for a List of structs. Namely, that the indexer in the case of an T[] returns...
3
I recently changed from Eclipse 3.6 to Eclipse 3.7 , which I am using for C++ development in Ubuntu 11.04 .
With Version 3.6 I had no big troubles, except that I always had some issues with the i...
1
Solved
What is the meaning of public string this[string columnName] When implementing IDataErrorInfo interface?
public string this[string columnName]
{
get
{
switch (columnName)
{
case "Name":
re...
Delius asked 28/3, 2016 at 14:50
2
Solved
I am using Eclipse CDT v4.3.2 from the ARM DS-5 v5.20.0 package for code development and debug of a Makefile project.
The makefile is actually a hierarchy of mkefiles that create multiple targets ...
Exordium asked 10/11, 2015 at 19:33
6
Solved
I'm looking for a way to search through our subversion repository or just packaged source code.
Are there any downloadable servers/tools like Google Code Search to index source code (prefera...
Steamboat asked 11/5, 2009 at 15:18
2
Solved
Consider following two data types:
class C
{
public int I { get; set; }
}
struct S
{
public int I { get; set; }
}
Let's try to use them inside the list, for example:
var c_list = new List<...
Embolus asked 3/8, 2015 at 15:2
1 Next >
© 2022 - 2025 — McMap. All rights reserved.