c# - Visual Studio's enumeration during debugging (Results View): "Entry point was not found.":"" -


in cases, when trying expand results view of ienumerable in visual studio might cause error: entry point not found.":".

so decided test little, , found out happens when class has generic parameter (which call t) , implements ienumerable[bar[t]] (something doesn't directly uses t) or doesn't uses t @ all, ienumerable[string] (these may not cases).

here's example class visual studio cannot expand results view properly:

class foo<t> : ienumerable<list<t>> {     readonly list<list<t>> l;     public foo() {         l = new list<list<t>>();     }     public void add(list<t> l) {         this.l.add(l);     }     public ienumerator<list<t>> getenumerator() {         return l.getenumerator();     }     ienumerator ienumerable.getenumerator() {         return getenumerator();     } } 

and here's example class visual studio enumerates:

class foo<t> : ienumerable<t> {     readonly list<t> l;     public foo() {         l = new list<t>();     }     public void add(t value) {         l.add(value);     }     public ienumerator<t> getenumerator() {         return l.getenumerator();     }     ienumerator ienumerable.getenumerator() {         return getenumerator();     } } 

this happens in debug mode. if try iterate through enumerable, you'll see it's working intended.

does have idea on why happens or how solve it?

this similar post one: https://stackoverflow.com/questions/23202302/entry-point-was-not-found-error-when-attempting-to-expand-the-results-view

however, felt wanted provide additional information.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -