1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4 
5 namespace System.ServiceModel.Activities
6 {
7     using System.Globalization;
8     using System.Runtime;
9     using System.Xml.Linq;
10 
11     static class BookmarkNameHelper
12     {
CreateBookmarkName(string operationName, XName serviceContractName)13         public static string CreateBookmarkName(string operationName, XName serviceContractName)
14         {
15             Fx.Assert(!string.IsNullOrEmpty(operationName), "OperationName cannot be null or empty");
16             return string.Format(CultureInfo.InvariantCulture, "{0}|{1}", operationName, serviceContractName);
17         }
18     }
19 }
20