This post originated from an RSS feed registered with .NET Buzz
by Oliver Sturm.
Original Post: Indexers breaking data binding
Feed Title: Oliver Sturm's weblog
Feed URL: https://oliversturm.com/blog/blog/archives/category/programming/net/feed/
Feed Description: General musings and programming stuff, .NET category
Alright, consider the following situation: There's a data class with two properties, "Index" and "Content". There's a specialised collection typed to contain instances of the data class. Something like this:
public class DataClass {
public DataClass(string index, string content) {
this.index = index;
this.content = content;
}
[...]