HttpBrowserCapabilitiesWrapper.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / HttpBrowserCapabilitiesWrapper.cs / 1 / HttpBrowserCapabilitiesWrapper.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using System; 
using System.Diagnostics; 
using System.Web;
 
namespace System.Web.UI {
    internal class HttpBrowserCapabilitiesWrapper : IHttpBrowserCapabilities {
        private HttpBrowserCapabilities _browser;
 
        public HttpBrowserCapabilitiesWrapper(HttpBrowserCapabilities browser) {
            Debug.Assert(browser != null); 
            _browser = browser; 
        }
 
        #region IHttpBrowserCapabilities Members
        string IHttpBrowserCapabilities.Browser {
            get {
                return _browser.Browser; 
            }
        } 
 
        Version IHttpBrowserCapabilities.EcmaScriptVersion {
            get { 
                return _browser.EcmaScriptVersion;
            }
        }
 
        Version IHttpBrowserCapabilities.JScriptVersion {
            get { 
                return _browser.JScriptVersion; 
            }
        } 

        bool IHttpBrowserCapabilities.SupportsCallback {
            get {
                return _browser.SupportsCallback; 
            }
        } 
 
        Version IHttpBrowserCapabilities.W3CDomVersion {
            get { 
                return _browser.W3CDomVersion;
            }
        }
        #endregion 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK