This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed
corefx/System/Globalization Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace System.Globalization
31
31
32
32
33
33
[ System . Runtime . InteropServices . ComVisible ( true ) ]
34
- public abstract class Calendar
34
+ public abstract class Calendar : ICloneable
35
35
{
36
36
// Number of 100ns (10E-7 second) ticks per time unit
37
37
internal const long TicksPerMillisecond = 10000 ;
@@ -143,11 +143,11 @@ public bool IsReadOnly
143
143
//
144
144
// Clone
145
145
//
146
- // Is the implementation of IColnable .
146
+ // Is the implementation of ICloneable .
147
147
//
148
148
////////////////////////////////////////////////////////////////////////
149
149
[ System . Runtime . InteropServices . ComVisible ( false ) ]
150
- internal virtual Object Clone ( )
150
+ public virtual object Clone ( )
151
151
{
152
152
object o = MemberwiseClone ( ) ;
153
153
( ( Calendar ) o ) . SetReadOnlyState ( false ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ namespace System.Globalization
47
47
using StringCultureInfoDictionary = LowLevelDictionary < string , CultureInfo > ;
48
48
#endif
49
49
50
- public partial class CultureInfo : IFormatProvider
50
+ public partial class CultureInfo : IFormatProvider , ICloneable
51
51
{
52
52
//--------------------------------------------------------------------//
53
53
// Internal Information //
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ internal enum DateTimeFormatFlags
55
55
56
56
57
57
[ System . Runtime . InteropServices . ComVisible ( true ) ]
58
- public sealed class DateTimeFormatInfo : IFormatProvider
58
+ public sealed class DateTimeFormatInfo : IFormatProvider , ICloneable
59
59
{
60
60
// cache for the invariant culture.
61
61
// invariantInfo is constant irrespective of your current culture.
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ namespace System.Globalization
41
41
//
42
42
43
43
[ System . Runtime . InteropServices . ComVisible ( true ) ]
44
- sealed public class NumberFormatInfo : IFormatProvider
44
+ sealed public class NumberFormatInfo : IFormatProvider , ICloneable
45
45
{
46
46
// invariantInfo is constant irrespective of your current culture.
47
47
private static volatile NumberFormatInfo invariantInfo ;
Original file line number Diff line number Diff line change 25
25
26
26
namespace System . Globalization
27
27
{
28
- public partial class TextInfo
28
+ public partial class TextInfo : ICloneable
29
29
{
30
30
////--------------------------------------------------------------------//
31
31
//// Internal Information //
@@ -145,7 +145,7 @@ public bool IsReadOnly
145
145
//// Is the implementation of IColnable.
146
146
////
147
147
//////////////////////////////////////////////////////////////////////////
148
- internal virtual Object Clone ( )
148
+ public virtual Object Clone ( )
149
149
{
150
150
object o = MemberwiseClone ( ) ;
151
151
( ( TextInfo ) o ) . SetReadOnlyState ( false ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ public bool IsReadOnly
170
170
//
171
171
// Clone
172
172
//
173
- // Is the implementation of IColnable .
173
+ // Is the implementation of ICloneable .
174
174
//
175
175
////////////////////////////////////////////////////////////////////////
176
176
[ System . Runtime . InteropServices . ComVisible ( false ) ]
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ public bool IsReadOnly
433
433
//
434
434
// Clone
435
435
//
436
- // Is the implementation of IColnable .
436
+ // Is the implementation of ICloneable .
437
437
//
438
438
////////////////////////////////////////////////////////////////////////
439
439
[ System . Runtime . InteropServices . ComVisible ( false ) ]
You can’t perform that action at this time.
0 commit comments