Public Class MyClass Public Function MyMethod(ByVal variable As Integer) As MyReturnType Return New MyReturnType End Function End Class Public Class MyReturnType Public Function ReturnTypeMethod() As Integer ' Do something here and return an integer... End Function End Class Dim i As Integer = MyClass.MyMethod(variable).ReturnTypeMethod()
You can break that into two statements so it is easy for you to see where the second function must be added:aclass.function(variable).function()
Dim x As bclass= aclass.function(variable) x.function()