50 lines
788 B
Plaintext
50 lines
788 B
Plaintext
== Why is this an issue?
|
|
|
|
include::../description.adoc[]
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,vbnet]
|
|
----
|
|
Public Class Empty ' Noncompliant
|
|
|
|
End Class
|
|
----
|
|
|
|
=== Compliant solution
|
|
|
|
[source,vbnet]
|
|
----
|
|
Public Interface IEmpty
|
|
|
|
End Interface
|
|
----
|
|
|
|
=== Exceptions
|
|
|
|
include::../exceptions-dotnet.adoc[]
|
|
|
|
[source,vbnet]
|
|
----
|
|
Imports Microsoft.AspNetCore.Mvc.RazorPages
|
|
|
|
Public Class EmptyPageModel ' Compliant - an empty PageModel can be fully functional, the VB code can be in the vbhtml file
|
|
Inherits PageModel
|
|
End Class
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[] |