ServiceOperationParameter.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / ServiceOperationParameter.cs / 1 / ServiceOperationParameter.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Provides a type to represent parameter information for service
//      operations. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services.Providers
{ 
    using System;
    using System.Diagnostics; 
 
    /// Use this type to represent a parameter on a service operation.
    [DebuggerVisualizer("ServiceOperationParameter={Name}")] 
    internal class ServiceOperationParameter
    {
        /// Parameter name.
        private readonly string name; 

        /// Parameter type. 
        private readonly Type type; 

        ///  
        /// Initializes a new .
        /// 
        /// Name of parameter.
        /// Type of parameter values. 
        public ServiceOperationParameter(string name, Type type)
        { 
            Debug.Assert(name != null, "name != null"); 
            Debug.Assert(type != null, "type != null");
 
            this.name = name;
            this.type = type;
        }
 
        /// Name of parameter.
        public string Name 
        { 
            get { return this.name; }
        } 

        /// Type of parameter values.
        public Type Type
        { 
            get { return this.type; }
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Provides a type to represent parameter information for service
//      operations. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services.Providers
{ 
    using System;
    using System.Diagnostics; 
 
    /// Use this type to represent a parameter on a service operation.
    [DebuggerVisualizer("ServiceOperationParameter={Name}")] 
    internal class ServiceOperationParameter
    {
        /// Parameter name.
        private readonly string name; 

        /// Parameter type. 
        private readonly Type type; 

        ///  
        /// Initializes a new .
        /// 
        /// Name of parameter.
        /// Type of parameter values. 
        public ServiceOperationParameter(string name, Type type)
        { 
            Debug.Assert(name != null, "name != null"); 
            Debug.Assert(type != null, "type != null");
 
            this.name = name;
            this.type = type;
        }
 
        /// Name of parameter.
        public string Name 
        { 
            get { return this.name; }
        } 

        /// Type of parameter values.
        public Type Type
        { 
            get { return this.type; }
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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