Otter SDK Reference
Version:

ScriptNamespaceAttribute Class

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

Inheritance Hierarchy

  • object
    • System.Attribute
      • Inedo.Otter.Extensibility.ScriptNamespaceAttribute

Syntax

public 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)

Returns the namespace fo the specified type.

GetScriptNamespace(System.Type type, bool returnNullIfPreferUnqualified)

Returns the namespace fo rthe specified type.

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.