
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
38 lines
848 B
Plaintext
38 lines
848 B
Plaintext
== Why is this an issue?
|
|
|
|
The parameter to ``++Assembly.Load++`` includes the full specification of the dll to be loaded. Use another method, and you might end up with a dll other than the one you expected.
|
|
|
|
|
|
This rule raises an issue when ``++Assembly.LoadFrom++``, ``++Assembly.LoadFile++``, or ``++Assembly.LoadWithPartialName++`` is called.
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,csharp]
|
|
----
|
|
static void Main(string[] args)
|
|
{
|
|
Assembly.LoadFrom(...); // Noncompliant
|
|
Assembly.LoadFile(...); // Noncompliant
|
|
Assembly.LoadWithPartialName(...); // Noncompliant + deprecated
|
|
}
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Replace this call to "Assembly.xxx" with "Assembly.Load".
|
|
|
|
|
|
=== Highlighting
|
|
|
|
``++Assembly.xxx++``
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|