47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
/// <summary>Persists an 8-byte <see cref="T:System.DateTime" /> constant for a field or parameter.</summary>
|
|
// Token: 0x02000297 RID: 663
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)]
|
|
[Serializable]
|
|
public sealed class DateTimeConstantAttribute : CustomConstantAttribute
|
|
{
|
|
/// <summary>Initializes a new instance of the DateTimeConstantAttribute class with the number of 100-nanosecond ticks that represent the date and time of this instance.</summary>
|
|
/// <param name="ticks">The number of 100-nanosecond ticks that represent the date and time of this instance. </param>
|
|
// Token: 0x060020E7 RID: 8423 RVA: 0x00078BB4 File Offset: 0x00076DB4
|
|
public DateTimeConstantAttribute(long ticks)
|
|
{
|
|
this.ticks = ticks;
|
|
}
|
|
|
|
// Token: 0x1700062C RID: 1580
|
|
// (get) Token: 0x060020E8 RID: 8424 RVA: 0x00078BC4 File Offset: 0x00076DC4
|
|
internal long Ticks
|
|
{
|
|
get
|
|
{
|
|
return this.ticks;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the number of 100-nanosecond ticks that represent the date and time of this instance.</summary>
|
|
/// <returns>The number of 100-nanosecond ticks that represent the date and time of this instance.</returns>
|
|
// Token: 0x1700062D RID: 1581
|
|
// (get) Token: 0x060020E9 RID: 8425 RVA: 0x00078BCC File Offset: 0x00076DCC
|
|
public override object Value
|
|
{
|
|
get
|
|
{
|
|
return this.ticks;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000BC5 RID: 3013
|
|
private long ticks;
|
|
}
|
|
}
|