Click or drag to resize

Extensions Class

Defines extension methods for use with all script engines.
Inheritance Hierarchy
SystemObject
  Microsoft.ClearScriptExtensions

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public static class Extensions

The Extensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodToHostType(Type) Converts a type to a host type for use with script code currently running on the calling thread.
Public Extension MethodToHostType(Type, ScriptEngine) Converts a type to a host type for use with script code running in the specified script engine.
Public Extension MethodToRestrictedHostObject(Object, Type) Converts an object to a host object with a type restriction specified as a Type instance, for use with script code currently running on the calling thread.
Public Extension MethodToRestrictedHostObject(Object, Type, ScriptEngine) Converts an object to a host object with a type restriction specified as a Type instance, for use with script code running in the specified script engine.
Public Extension MethodToRestrictedHostObjectT(T) Converts an object to a host object with the specified type restriction, for use with script code currently running on the calling thread.
Public Extension MethodToRestrictedHostObjectT(T, ScriptEngine) Converts an object to a host object with the specified type restriction, for use with script code running in the specified script engine.
Top
See Also