ServiceOperationListItemList.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / Design / ServiceOperationListItemList.cs / 1305376 / ServiceOperationListItemList.cs

                            //---------------------------------------------------------------- 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//---------------------------------------------------------------
namespace System.Workflow.Activities.Design
{ 
    using System.Runtime;
    using System.ServiceModel; 
 
    class ServiceOperationListItemList : NamedObjectList
    { 
        protected override string GeneratedNameFormatResource
        {
            get
            { 
                return SR2.GeneratedOperationNameFormat;
            } 
        } 

        protected override ServiceOperationListItem CreateObject(string name) 
        {
            ServiceOperationListItem result = new WorkflowServiceOperationListItem();
            result.Name = name;
            return result; 
        }
 
        protected override string GetName(ServiceOperationListItem obj) 
        {
            Fx.Assert(obj != null, "Null object passed to ServiceOperationListItemList.GetName()"); 
            return obj.Name;
        }
    }
} 

// 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