nHapiNET / nHapi

nHapi is the .Net port of the original Java project HAPI.
Mozilla Public License 2.0
277 stars 157 forks source link

getting exceptions trying to compile vb.net project against nhapi 3.2 (in c# it probably would have been ok but we are using vb.net) #547

Closed AlexFJaxFL closed 8 months ago

AlexFJaxFL commented 8 months ago

getting the following exceptions trying to compile vb.net project:

error BC31429: 'addNonstandardSegment' is ambiguous because multiple kinds of members with this name exist in class 'AbstractGroup'. (and i do see kind of duplicate definitions there

  Public Overridable Function AddNonstandardSegment(name As String, index As Integer) As String
  Public Overridable Function AddNonstandardSegment(name As String) As String
  Public Overridable Function addNonstandardSegment(name As String) As String

  in c# this probably would have worked but we are using vb.net 

getSegment' is ambiguous because multiple kinds of members with this name exist in class 'Terser'. (and i do see duplicate definitions Public Overridable Function getSegment(segSpec As String) As ISegment Public Overridable Function GetSegment(segSpec As String) As ISegment

this probably would have worked in c# but we are using vb.net)

error BC30456: 'InsuredSIDNumber' is not a member of 'IN1'.

warning BC40000: 'Public Overloads ReadOnly Property InsuranceCompanyID As CX' is obsolete: 'Use 'GetInsuranceCompanyID(int rep)' instead.'. <= this one looks clear to me

warning BC40000: 'Public Overloads ReadOnly Property InsuranceCompanyName As XON' is obsolete: 'Use 'GetInsuranceCompanyName(int rep)' instead.'. <= this one looks clear to me

Environmental Details (please complete the following information):

milkshakeuk commented 8 months ago

@AlexFJaxFL you might want to look at #233

AlexFJaxFL commented 8 months ago

ok, will try this approach hopefully sometime this week and will provide an update here

AlexFJaxFL commented 8 months ago

ok, approach proposed in issue 233 (to use reflection) worked for me very well!

milkshakeuk commented 8 months ago

@AlexFJaxFL glad this works for you, are we able to close the issue? Please close it if it's okay.

AlexFJaxFL commented 8 months ago

issue resolved!