[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/orudge/ClearScript/master/ClearScript/Undefined.cs [Back]  [Original]

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

namespace Microsoft.ClearScript
{
    /// 
    /// Represents an undefined value.
    /// 
    /// 
    /// Most script languages support one or more special values that represent nonexistent,
    /// missing, unknown, or undefined data. The ClearScript library maps some such values to
    /// null, and others to instances of this class.
    /// 
    public class Undefined
    {
        internal static readonly Undefined Value = new Undefined();

        private Undefined()
        {
        }

        #region Object overrides

        /// 
        /// Returns a string that represents the current object.
        /// 
        /// A string that represents the current object.
        /// 
        /// The  version of this method returns "[undefined]".
        /// 
        public override string ToString()
        {
            return "[undefined]";
        }

        #endregion
    }
}

Web Proxy Viewer  |  New URL  |  Original Page