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=d7e36003387a40a2e8f3055ef9efc38c1df33e63;hp=f8537b8a60e408f50afd8295a6a1d908e52f5d4a;hpb=75df74a96c33af7a99e16e4281272f1b67334a48;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; } }