// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using Microsoft.ClearScript.Util;
namespace Microsoft.ClearScript.Windows
{
///
/// Represents an empty object reference.
///
///
/// When passed to a Windows Script engine, an instance of this class is marshaled as an empty
/// variant of type VT_DISPATCH. VBScript interprets this as the special object
/// reference
/// Nothing.
/// In JScript it appears as a value that is equal to, but not strictly equal to,
/// undefined.
///
public class Nothing : INothingTag
{
///
/// The sole instance of the class.
///
public static readonly Nothing Value = new Nothing();
private Nothing()
{
}
#region Object overrides
///
/// Returns a string that represents the current object.
///
/// A string that represents the current object.
///
/// The version of this method returns "[nothing]".
///
public override string ToString()
{
return "[nothing]";
}
#endregion
}
}