ScriptNamespaceAttribute Class

Specifies the default OtterScript namespace for a class or an assembly.

Inheritance Hierarchy

Syntax

public sealed class ScriptNamespaceAttribute : System.Attribute

Constructors

Name Description
ScriptNamespaceAttribute(string namespaceName)

Initializes a new instance of the ScriptNamespaceAttribute class.

Properties

Name Description
Namespace

Gets the namespace for scripting.

PreferUnqualified

Gets a value indicating whether the namespace is usually needed.

Methods

Name Description
GetScriptNamespace(System.Type type, bool returnNullIfPreferUnqualified)

Remarks

If no attribute is present on the class, the assembly's attribute will be used; if no assembly attribute is specified, the assembly's name will be used.