別のクラスに属する別の関数に渡す必要がある構造を含むクラスがあります。(VB.NET)
Public Class A_one
Private Structure Profile
Dim strUIConfig as String
Dim blah blah as String
Dim Xyz as string
End Structure
Dim testProfile as New Profile()
'inititialize testProfile Here
toObj.send_profile(testProfile)
Public Class B_one
send_profile(ByVal x as A_one.Profile) ' How should I provide the declaration here ?
'blah blah blah do stuff
p = x.strUIconfig '???
クラス A_one に dll がなく、その dll をクラス B の参照として追加できるのは奇妙だと思います。これにより、クラス A_one の dll をクラス B にインポートすると、技術的に問題が解決します。私の理解は正しいですか?