e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
44 lines
1.2 KiB
C#
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; }
|
|
}
|
|
}
|
|
}
|