Skip to content

Instantly share code, notes, and snippets.

@M-Zuber
Created January 30, 2017 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M-Zuber/fd9e49918b52320ee718f61cfefbef88 to your computer and use it in GitHub Desktop.
Save M-Zuber/fd9e49918b52320ee718f61cfefbef88 to your computer and use it in GitHub Desktop.
Wierd IntelliSense thing
public class Foo
{
public OtherClass GetThing(params object[] stuff) => new OtherClass(stuff);
public void DoThing()
{
var first = GetThing(..);
// This was reported as having type `dynamic`
var second = GetThing(..);
}
}
public class OtherClass
{
object[] _stuff;
public OtherClass(object[] stuff)
{
_stuff = stuff;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment