Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27046

Reference something without the having it available (like a late binding)

$
0
0
Hi,

im just wandering, if this is at all possible.

i have a project which is importing classes from outside the assembly,
when im creating these classes in seperate assemblies i have to reference the project there going into.

is it possible to do this without the reference like a late binding reference?

example

Code:

Imports System.ComponentModel.Composition
Imports MEF_Test

<Export(GetType(MEF_Test.IPart))>
<ExportMetadata("Description", "AddText2")>
Public Class AddText2
    Implements IPart

    Public Function Action(ByVal input As String) As String Implements IPart.Action
        Return input & "hello2"
    End Function
End Class

the parts in red are what relies on the reference.

Viewing all articles
Browse latest Browse all 27046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>