// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.ClearScript
{
///
/// Represents the result of a host method that returns no value.
///
///
/// Some script languages expect every subroutine call to return a value. When script code
/// written in such a language invokes a host method that explicitly returns no value (such
/// as a C#
/// void
/// method), the ClearScript library provides an instance of this class as a dummy return
/// value.
///
///
public class VoidResult
{
///
/// The sole instance of the class.
///
public static readonly VoidResult Value = new();
private VoidResult()
{
}
#region Object overrides
///
/// Returns a string that represents the current object.
///
/// A string that represents the current object.
///
/// The version of this method returns "[void]".
///
public override string ToString()
{
return "[void]";
}
#endregion
}
}