ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Properties
AccessContext Property
AllowReflection Property
ContinuationCallback Property
Current Property
CustomAttributeLoader Property
DefaultAccess Property
DisableDynamicBinding Property
DisableExtensionMethods Property
DisableFloatNarrowing Property
DisableListIndexTypeRestriction Property
DisableTypeRestriction Property
DocumentSettings Property
EnableAutoHostVariables Property
EnableNullResultWrapping Property
EnforceAnonymousTypeAccess Property
ExposeHostObjectStaticMembers Property
FileNameExtension Property
FormatCode Property
Global Property
HostData Property
Name Property
NullExportValue Property
NullImportValue Property
Script Property
UndefinedImportValue Property
UseReflectionBindFallback Property
VoidResultValue Property

# ScriptEngineEnableNullResultWrapping Property

Enables or disables null wrapping for field, property, and method return values.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool EnableNullResultWrapping { get; set; }

    Public Property EnableNullResultWrapping As Boolean
    	Get
    	Set

    public:
    virtual property bool EnableNullResultWrapping {
    	bool get () sealed;
    	void set (bool value) sealed;
    }

    abstract EnableNullResultWrapping : bool with get, set
    override EnableNullResultWrapping : bool with get, set

#### Property Value

Boolean

#### Implements

IScriptEngineEnableNullResultWrapping
Remarks
When this property is set to true, all field, property, and method return values are marshaled with full .NET type information even if they are null. Note that such values will always fail equality comparison with JavaScript's null, VBScript's Nothing, and other similar values. Instead, use isNull(Object) or Equals(Object, Object) to perform such a comparison.
See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace
WrapNullResult
isNull(Object)

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft