在VB.NET / WPF中扩展我的命名空间

时间:2015-04-24 07:36:10

标签: wpf vb.net visual-studio-2013

在Windows窗体中,我使用一些有用的方法扩展了我的命名空间类。例如:

Namespace My
    Partial Friend Class MyComputer
        Public Function IsPortAvailable(ByVal port As Integer) As Boolean
        ...
        End Function
    End Class
End Namespace

然后使用:
My.Computer.IsPortAvailable(12345)
不幸的是,这在WPF应用程序(VS2013社区)中不起作用。除了在My namespace中创建新类/模块之外的任何解决方案吗?

0 个答案:

没有答案
相关问题