I'm pretty sure that assigning properties in the with section of a class instantiation is BYVAL. Can anyone verify that?
ex) Dim FileProcess As New FileProcessor With {.Tracing = myTracing, .ProcessingTime = FileProcessingDelay}
I don't want to create a new object (.Tracing).
In the following example, I know for sure I'm passing in byref because that's the signature of the constructor.
ex) Dim FileProcess as new FileProcessor (myTracing) With {.ProcessingTime = FileProcessingDelay}
Public Class FileProcessor
Friend Sub New (byref Tracer as TraceObject)
End Sub
End Class
Regards,
Dave
ex) Dim FileProcess As New FileProcessor With {.Tracing = myTracing, .ProcessingTime = FileProcessingDelay}
I don't want to create a new object (.Tracing).
In the following example, I know for sure I'm passing in byref because that's the signature of the constructor.
ex) Dim FileProcess as new FileProcessor (myTracing) With {.ProcessingTime = FileProcessingDelay}
Public Class FileProcessor
Friend Sub New (byref Tracer as TraceObject)
End Sub
End Class
Regards,
Dave