51 lines
874 B
Plaintext
51 lines
874 B
Plaintext
include::../description.adoc[]
|
|
|
|
== How to fix it
|
|
|
|
=== Code examples
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
Imports System.ComponentModel.Composition
|
|
|
|
<PartCreationPolicy(CreationPolicy.Any)> ' Noncompliant
|
|
Public Class FooBar
|
|
Inherits IFooBar
|
|
End Class
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,vbnet,diff-id=1,diff-type=compliant]
|
|
----
|
|
Imports System.ComponentModel.Composition
|
|
|
|
<Export(GetType(IFooBar))>
|
|
<PartCreationPolicy(CreationPolicy.Any)>
|
|
Public Class FooBar
|
|
Inherits IFooBar
|
|
End Class
|
|
----
|
|
|
|
include::../resources.adoc[]
|
|
|
|
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[]
|