2024-04-15 10:51:00 +02:00

50 lines
757 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,csharp]
----
public class Empty // Noncompliant
{
}
----
=== Compliant solution
[source,csharp]
----
public interface IEmpty
{
}
----
=== Exceptions
include::../exceptions-dotnet.adoc[]
[source,csharp]
----
using Microsoft.AspNetCore.Mvc.RazorPages;
public class EmptyPageModel: PageModel // Compliant - an empty PageModel can be fully functional, the C# code can be in the cshtml file
{
}
----
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[]