blob: 44c497706e30a8e87fd03ea3487885b4a4eef81e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)]
public sealed class DateTimeConstantAttribute : CustomConstantAttribute
{
private DateTime _date;
public DateTimeConstantAttribute(long ticks)
{
_date = new DateTime(ticks);
}
public override object Value => _date;
}
}
|