Skip to content

CS1061 #45933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
leylanyzamova opened this issue Apr 28, 2025 · 1 comment
Closed

CS1061 #45933

leylanyzamova opened this issue Apr 28, 2025 · 1 comment

Comments

@leylanyzamova
Copy link

leylanyzamova commented Apr 28, 2025

Type of issue

Code doesn't work

Description

[Enter feedback here]
Severity Code Description Project File Line Suppression State Details
Error (active) CS1061 'object' does not contain a definition for 'Name' and no accessible extension method 'Name' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) WindowsFormsApp8 C:\Users\Leyla\source\repos\WindowsFormsApp8\MainForm.cs 36

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061?f1url=%3FappId%3Droslyn%26k%3Dk(CS1061)

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-messages/cs1061.md

Document Version Independent Id

df4263c1-477a-3c32-9abe-3fcb850e6c1b

Platform Id

675a4c35-cd66-9592-d77f-b6ef2558d9de

Article author

@BillWagner

Metadata

  • ID: 60c946d7-649b-44e4-49a9-543565904d18
  • PlatformId: 675a4c35-cd66-9592-d77f-b6ef2558d9de
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues

@BillWagner
Copy link
Member

Hi @leylanyzamova

The article does describe what's wrong. If you want specific help on your scenario, post a small sample to our Q & A site. People monitor that site to provide specific answers.

I'll close this as it's not a documentation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants