I wonder why Visual Studio is raising this warning:
Access of shared member, constant member, enum member or nested type through an instance
My code:
Dim a As ApplicationDeployment = deployment.Application.ApplicationDeployment.CurrentDeployment
If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then
If a.IsNetworkDeployed Then
' do something
End If
End If
What implies "through an instance"? Also, why is this a "warning"?
a
in your example) to access a Shared method or property. VB allows this but generates a warning. C# does not allow it and it would be an error in C#. – Bosomy