Can we define a constructor with 'Friend' modifier?
Friend Class Reader
Friend Sub New()
End Sub
End Class
Thanks!
Can we define a constructor with 'Friend' modifier?
Friend Class Reader
Friend Sub New()
End Sub
End Class
Thanks!
Yes, no problem. It is superfluous since the Friend accessor on the class already puts the constructor out of reach. The VB.NET compiler doesn't mind though, nor does the C# compiler for that matter. There is no inconsistency.