forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVoidResult.cs
More file actions
23 lines (21 loc) · 848 Bytes
/
VoidResult.cs
File metadata and controls
23 lines (21 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.ClearScript
{
/// <summary>
/// Represents the result of a host method that returns no value.
/// </summary>
/// <remarks>
/// 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# <see href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/void">void</see> method),
/// the ClearScript library provides an instance of this class as a dummy return value.
/// </remarks>
public class VoidResult
{
internal static readonly VoidResult Value = new VoidResult();
private VoidResult()
{
}
}
}