Click here to Skip to main content
15,884,473 members
Articles / Web Development / ASP.NET

DesktopBrowser - A Web Based File Explorer for Media Desktops

Rate me:
Please Sign up or sign in to vote.
4.21/5 (4 votes)
25 Jun 2011GPL32 min read 34K   1.1K   22  
A presentation of DesktopBrowser open-source project, a web based file explorer for media desktops.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpKit.Utils
{
    internal static class Parse
    {
        public static int? TryInt(string s)
        {
            int x;
            if (int.TryParse(s, out x))
                return x;
            return null;
        }
        public static bool? TryBoolean(string s)
        {
            bool x;
            if (bool.TryParse(s, out x))
                return x;
            return null;
        }

        public static long? TryLong(string s)
        {
            long x;
            if (long.TryParse(s, out x))
                return x;
            return null;
        }
    }
}

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 GNU General Public License (GPLv3)


Written By
Architect SharpKit
Israel Israel
Founder of SharpKit

Comments and Discussions