Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Henrich <marcos.henrich@xamarin.com>2015-04-02 17:47:13 +0300
committerMarcos Henrich <marcos.henrich@xamarin.com>2015-04-03 12:27:50 +0300
commitf7c051a73c31b842bf9695099d365b050372380c (patch)
treee97f742e4cd51e44f1b9de1033976ecfec640feb /mcs/class/corlib
parentc555aee959e80bf0f03d96737ea2d9a34543a8b1 (diff)
[corlib] Renamed GetUtcOffset to GetUtcOffsetHelper.
The new name is to avoid using the helper method instead of GetUtcOffset.
Diffstat (limited to 'mcs/class/corlib')
-rw-r--r--mcs/class/corlib/System/TimeZoneInfo.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/corlib/System/TimeZoneInfo.cs b/mcs/class/corlib/System/TimeZoneInfo.cs
index b1376f3c06c..34a5b373365 100644
--- a/mcs/class/corlib/System/TimeZoneInfo.cs
+++ b/mcs/class/corlib/System/TimeZoneInfo.cs
@@ -699,7 +699,7 @@ namespace System
tz = TimeZoneInfo.Local;
bool isTzDst;
- var tzOffset = GetUtcOffset (dateTime, tz, out isTzDst);
+ var tzOffset = GetUtcOffsetHelper (dateTime, tz, out isTzDst);
if (tz == this) {
isDST = isTzDst;
@@ -712,10 +712,11 @@ namespace System
var utcDateTime = new DateTime (utcTicks, DateTimeKind.Utc);
- return GetUtcOffset (utcDateTime, this, out isDST);
+ return GetUtcOffsetHelper (utcDateTime, this, out isDST);
}
- private static TimeSpan GetUtcOffset (DateTime dateTime, TimeZoneInfo tz, out bool isDST)
+ // This is an helper method used by the method above, do not use this on its own.
+ private static TimeSpan GetUtcOffsetHelper (DateTime dateTime, TimeZoneInfo tz, out bool isDST)
{
if (dateTime.Kind == DateTimeKind.Local && tz != TimeZoneInfo.Local)
throw new Exception ();