singrdk/base/Kernel/Singularity.Security/AccessControl/AclToken.sg

47 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
namespace Microsoft.Singularity.Security.AccessControl
{
using System;
/// <summary>
/// Summary description for Token.
/// </summary>
internal class AclToken
{
/// <summary>
/// The token type
/// </summary>
public AclTokenType Type;
/// <summary>
/// The value of the token
/// </summary>
public readonly string! Text;
/// <summary>
/// Start position in the input stream.
/// </summary>
public int Start;
/// <summary>
/// End position in the input stream.
/// </summary>
public int End;
public AclToken(AclTokenType type, string! text, int start, int end)
{
this.Type = type;
this.Text = text;
this.Start = start;
this.End = end;
}
public override string! ToString()
{
return "[" + Type + ":" + Text + ":(" + Start + "," + End +")]";
}
}
}