WeaverUtilities.

LogIfRestricted(string) Method

Summary

If RESTRICT_USAGE is defined, this method will log a warning. This is useful for verifying that certain methods are only used in certain contexts. For example, you might want to ensure that an inefficient method or class is not used in a release build of your application.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
WeaverUtilities

Syntax

[System.Diagnostics.Conditional("RESTRICT_USAGE")]
public static void LogIfRestricted(string name)

Attributes

Type Description
ConditionalAttribute

Parameters

Name Type Description
name string

Return Value

Type Description
void