Skip to content

.Net Language incompatibility #233

@kalatchev

Description

@kalatchev

Description
In class NHapi.Base.Model.ExtraComponents there is a .net language incompatibility because there are two methods (GetComponent and NumComponents) that have duplicates with a different casing, which works only in C#, but not in a case-insensitive languages such as VB.NET. Example: getComponent and GetComponent. These two methods are uninvokable through VB.NET and generally have to be considered as a non-CLS compliant. Moreover, lower-case variants are marked as deprecated, so IMHO they should be simply removed.

Environmental Details:

  • OS: Windows 10 Pro x64
  • Target Framework: net46
  • Version: 3.0.4
  • HL7 Version: Any

Additional details
I tried to invoke them with CallByName(obj1, "GetComponent", CallType.Method, 1) but even that doesn't work and I'm getting Exception thrown: 'System.Reflection.AmbiguousMatchException' in Microsoft.VisualBasic.dll.

I searched over the code, and issue SA1300 is found on numerous places, and all they will have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions