dotnet / dotnet/roslyn

Decompiled sources resolve wrong type.

Open
#74,704 0 comments 0 reactions 1 assignee Claimed by @JoeRobich View on GitHub
Area-IDE Navigation-SourceLink
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Decompiled-sources-resolve-wrong-type/10696482)._

---
[severity:It bothers me. A fix would be nice]
I am navigating to `FakeTimeProvider` class from `Microsoft.Extensions.TimeProvider.Testing`, and go to `CreateTimer` method where I see a call `new Timer(...)`.

But when I press Ctrl+F12 I see code of `System.Threading.Timers`, not the internal `Timer`. (https://github.com/dotnet/extensions/blob/main/src/Libraries/Microsoft.Extensions.TimeProvider.Testing/Timer.cs)

Also, pay attention that its constrcutor accepts 3 arguments whereas `System.Threading.Timer` does not have constructor with 3 arguments.

---
### Original Comments

#### Feedback Bot on 7/4/2024, 00:35 AM:

(private comment, text removed)
#### igveliko [MSFT] on 7/9/2024, 03:38 AM:

(private comment, text removed)
#### Feedback Bot on 7/9/2024, 04:39 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.