Click here to Skip to main content
15,886,362 members
Articles / Web Development / HTML

Using DayPilot (Outlook-Like Calendar/Scheduling Control for ASP.NET)

Rate me:
Please Sign up or sign in to vote.
4.83/5 (64 votes)
30 Mar 2015Apache7 min read 367.2K   4.2K   286  
Showing the features of a flexible ASP.NET event calendar/scheduling control.
/*
 * Thanks to http://litjson.sourceforge.net/
 */

using System.Collections;
using System.Collections.Specialized;


namespace DayPilot.Json
{
    /// <summary>
    /// Json types. Thanks to http://litjson.sourceforge.net/.
    /// </summary>
    public enum JsonType
    {
        /// <summary>
        /// No type.
        /// </summary>
        None,

        /// <summary>
        /// Object type.
        /// </summary>
        Object,

        /// <summary>
        /// Array type.
        /// </summary>
        Array,

        /// <summary>
        /// Strign type.
        /// </summary>
        String,

        /// <summary>
        /// Integer type.
        /// </summary>
        Int,

        /// <summary>
        /// Long type.
        /// </summary>
        Long,

        /// <summary>
        /// Double type.
        /// </summary>
        Double,

        /// <summary>
        /// Boolean type.
        /// </summary>
        Boolean
    }

    internal interface IJsonWrapper : IList, IOrderedDictionary
    {
        bool IsArray   { get; }
        bool IsBoolean { get; }
        bool IsDouble  { get; }
        bool IsInt     { get; }
        bool IsLong    { get; }
        bool IsObject  { get; }
        bool IsString  { get; }

        bool     GetBoolean ();
        double   GetDouble ();
        int      GetInt ();
        JsonType GetJsonType ();
        long     GetLong ();
        string   GetString ();

        void SetBoolean  (bool val);
        void SetDouble   (double val);
        void SetInt      (int val);
        void SetJsonType (JsonType type);
        void SetLong     (long val);
        void SetString   (string val);

        /*
        string ToJson ();
        void   ToJson (JsonWriter writer);
         */ 
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Czech Republic Czech Republic
My open-source event calendar/scheduling web UI components:

DayPilot for JavaScript, Angular, React and Vue

Comments and Discussions