X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.CompilerServices%2FDateTimeConstantAttribute.cs;h=9575c3d16b2a446147c3fd852e4dbeb454dc431e;hb=e2812813f9cd0a9342982f42f8b8b9818132a7fb;hp=f8537b8a60e408f50afd8295a6a1d908e52f5d4a;hpb=cccbf6a4b7152c24fafc319e77060a4723a8560e;p=mono.git diff --git a/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs b/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs index f8537b8a60e..9575c3d16b2 100644 --- a/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs +++ b/mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs @@ -36,9 +36,7 @@ namespace System.Runtime.CompilerServices { [Serializable] [AttributeUsage (AttributeTargets.Field | AttributeTargets.Parameter, Inherited=false)] -#if NET_2_0 [ComVisible(true)] -#endif public sealed class DateTimeConstantAttribute : CustomConstantAttribute { long ticks; @@ -48,6 +46,10 @@ namespace System.Runtime.CompilerServices { this.ticks = ticks; } + internal long Ticks { + get { return ticks; } + } + public override object Value { get { return ticks; } }