rspec/rules/S3860/vbnet/rule.adoc
2022-02-04 16:28:24 +00:00

41 lines
661 B
Plaintext

Since Visual Studio 2010 SP1, the ``++ByVal++`` parameter modifier is implicitly applied, and therefore not required anymore. Removing it from your source code will improve readability.
== Noncompliant Code Example
[source,vbnet]
----
Sub Foo(ByVal bar As String)
' ...
End Sub
----
== Compliant Solution
[source,vbnet]
----
Sub Foo(bar As String)
' ...
End Sub
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]