e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
43 lines
1018 B
C#
43 lines
1018 B
C#
//----------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//----------------------------------------------------------------
|
|
|
|
namespace System
|
|
{
|
|
struct UriTemplateTableMatchCandidate
|
|
{
|
|
readonly object data;
|
|
readonly int segmentsCount;
|
|
readonly UriTemplate template;
|
|
|
|
public UriTemplateTableMatchCandidate(UriTemplate template, int segmentsCount, object data)
|
|
{
|
|
this.template = template;
|
|
this.segmentsCount = segmentsCount;
|
|
this.data = data;
|
|
}
|
|
public object Data
|
|
{
|
|
get
|
|
{
|
|
return this.data;
|
|
}
|
|
}
|
|
public int SegmentsCount
|
|
{
|
|
get
|
|
{
|
|
return this.segmentsCount;
|
|
}
|
|
}
|
|
|
|
public UriTemplate Template
|
|
{
|
|
get
|
|
{
|
|
return this.template;
|
|
}
|
|
}
|
|
}
|
|
}
|