Reputation: 91
I was trying to test an extension method that I made for IEnumerable<T>
inside of the C# Interactive Window that comes with VS2015 and I am having a hard time getting the window to find the method that I defined.
Basically I defined a method as follows:
public static IEnumerable<T> AsEndless<T>(this Enumerable<T> currEnum)
If I create a new console project and reference my extensions project I can call that extension method just fine, but if I try to do the same thing in the C# interactive window, even after importing the dll with #r 'path-to-dll'
I get an error saying that my test List<int> does not contain a definition for 'AsEndless'
.
Is it simply not possible to do something like this with the C# Interactive Window?
Upvotes: 2
Views: 985
Reputation: 6170
It's possible you forgot to do the using
too from within the interactive window.
Upvotes: 2