Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Standard Version / Problems with VB.Net on: February 14, 2011, 02:54:07
Hi,

as programming language I'm using VB.Net. Usually the C#-libraries can be used with out any problems.

I now wanted to try PureMVC and started porting the EmployeeAdmin-WPF-Demo to VB.Net.
In the ApplicationFacde I have the problem that I cannot access the "m_instance" from the Facade.
I can access "m_controller", "m_model", "m_view" and also "m_staticSyncRoot".

The error-message is "The type of the field 'm_instance' is not supported".

The class so far:

:
Imports PureMVC.Core
Imports PureMVC.Patterns
Imports PureMVC.Interfaces

Public Class ApplicationFacade
    Inherits Facade

#Region "Notification name constants"
    Public Const STARTUP As String = "startup"
#End Region


#Region "Accessors"

    '/// <summary>
    '/// Facade Singleton Factory method.
    '/// </summary>
    Public Shared Function GetInstance() As IFacade
        If m_instance Is Nothing Then
            m_instance = New ApplicationFacade
        End If
    End Function

#End Region

End Class

Why is "m_instance" not accessable?

Regards
Sabine
Pages: [1]