Files
dotnet-bot 332534dede Adding reference source for part of Workflow Foundation
Adding reference source for
System.Activities
System.Activities.DurableInstancing
System.Activities.Presentation
System.Runtime.DurableInstancing
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.WorkflowServices
System.Xaml.Hosting
XamlBuildTask
2016-05-03 00:07:54 +02:00

44 lines
1.2 KiB
C#

//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
namespace System.Activities.Statements
{
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Runtime;
[DataContract]
class BookmarkTable
{
//Number of bookmarks used internally
static int tableSize = Enum.GetValues(typeof(CompensationBookmarkName)).Length;
Bookmark[] bookmarkTable;
public BookmarkTable()
{
this.bookmarkTable = new Bookmark[tableSize];
}
public Bookmark this[CompensationBookmarkName bookmarkName]
{
get
{
return this.bookmarkTable[(int)bookmarkName];
}
set
{
this.bookmarkTable[(int)bookmarkName] = value;
}
}
[DataMember(Name = "bookmarkTable")]
internal Bookmark[] SerializedBookmarkTable
{
get { return this.bookmarkTable; }
set { this.bookmarkTable = value; }
}
}
}