Skip to content
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

Support for VB.NET: 'field' is ambiguous (case sensitivity) #152

Closed
Tecnosoft-dev opened this issue May 12, 2023 · 1 comment
Closed

Support for VB.NET: 'field' is ambiguous (case sensitivity) #152

Tecnosoft-dev opened this issue May 12, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Tecnosoft-dev
Copy link

Because this language is not case sensitive for that an ambiguous exception denies the app to be compiled
Please consider changing id and ID, so the they are not equal members name.

@wiz0u
Copy link
Owner

wiz0u commented May 12, 2023

Sorry, WTelegramClient will NOT be modified to address this issue, so here are three solutions:

  1. Convert your project to C# 👍🏻
  2. Create a small C# wrapper library to access WTelegramClient, which you can then use in your VB․NET project
  3. Use Reflection to access the ambiguous fields/properties, like this:
  Dim propValue = obj.GetType().GetProperty("ID").GetValue(obj)
  Dim fieldValue = obj.GetType().GetField("id").GetValue(obj)

@wiz0u wiz0u closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2023
@wiz0u wiz0u added the wontfix This will not be worked on label May 12, 2023
@wiz0u wiz0u changed the title Vb .net cannot Distinguere photo.id and photo.ID Support for VB.NET / Cannot distinguish photo.id and photo.ID May 12, 2023
Repository owner deleted a comment from Tecnosoft-dev Jun 2, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2023
@wiz0u wiz0u changed the title Support for VB.NET / Cannot distinguish photo.id and photo.ID Support for VB.NET: 'field' is ambiguous (case sensitivity) Oct 25, 2023
@wiz0u wiz0u pinned this issue Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants