This repository was archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathUniqueTag.cs
More file actions
64 lines (53 loc) · 2.08 KB
/
Copy pathUniqueTag.cs
File metadata and controls
64 lines (53 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//------------------------------------------------------------------------------
// <license file="UniqueTag.cs">
//
// The use and distribution terms for this software are contained in the file
// named 'LICENSE', which can be found in the resources directory of this
// distribution.
//
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// </license>
//------------------------------------------------------------------------------
using System;
namespace EcmaScript.NET
{
/// <summary>
/// Class instances represent serializable tags to mark special Object values.
/// </summary>
public class UniqueTag
{
/// <summary>
/// Tag to mark non-existing values.
/// </summary>
public static readonly UniqueTag NotFound = new UniqueTag ("NotFound");
/// <summary>
/// Tag to distinguish between uninitialized and null values.
/// </summary>
public static readonly UniqueTag NullValue = new UniqueTag ("NullValue");
/// <summary>
/// Tag to indicate that a object represents "double" with the real value
/// stored somewhere else.
/// </summary>
public static readonly UniqueTag DoubleMark = new UniqueTag ("DoubleMark");
/// <summary>
/// Tag to indicate that a object represents "long" with the real value
/// stored somewhere else.
/// </summary>
public static readonly UniqueTag LongMark = new UniqueTag ("LongMark");
private string tagName;
private UniqueTag (string tagName)
{
this.tagName = tagName;
}
/// <summary>
/// Returns a string represenation of this UniqueTag
/// </summary>
/// <returns></returns>
public override string ToString ()
{
return "UniqueTag." + this.tagName;
}
}
}