Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / TimeZone.cs / 1305376 / TimeZone.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: TimeZone ** ** ** Purpose: ** This class is used to represent a TimeZone. It ** has methods for converting a DateTime to UTC from local time ** and to local time from UTC and methods for getting the ** standard name and daylight name of the time zone. ** ** The only TimeZone that we support in version 1 is the ** CurrentTimeZone as determined by the system timezone. ** ** ============================================================*/ #if !FEATURE_CORECLR namespace System { using System; using System.Text; using System.Threading; using System.Collections; using System.Globalization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] #if FEATURE_CORECLR [Obsolete("System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.")] #endif public abstract class TimeZone { private static TimeZone currentTimeZone = null; // Private object for locking instead of locking on a public type for SQL reliability work. private static Object s_InternalSyncObject; private static Object InternalSyncObject { get { if (s_InternalSyncObject == null) { Object o = new Object(); Interlocked.CompareExchange
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ButtonChrome.cs
- RuntimeResourceSet.cs
- TargetConverter.cs
- QilXmlReader.cs
- MobileControlDesigner.cs
- NumericUpDown.cs
- TemplateControlParser.cs
- VSWCFServiceContractGenerator.cs
- FormViewUpdateEventArgs.cs
- SafeNativeMethods.cs
- DocumentPageView.cs
- GeneralTransform3D.cs
- CodeAttributeArgument.cs
- ClientRolePrincipal.cs
- TerminatorSinks.cs
- CallContext.cs
- XmlIlTypeHelper.cs
- ConnectionPoint.cs
- SqlClientWrapperSmiStreamChars.cs
- ListBindableAttribute.cs
- DataGridViewCell.cs
- WSTrustFeb2005.cs
- ImportContext.cs
- SqlDataSourceConfigureSortForm.cs
- SQLSingle.cs
- TimeSpanConverter.cs
- ProjectedSlot.cs
- DBCSCodePageEncoding.cs
- RegularExpressionValidator.cs
- PictureBox.cs
- BitmapEffectDrawingContextState.cs
- ProcessHostConfigUtils.cs
- RequestCacheValidator.cs
- SamlAuthenticationStatement.cs
- Binding.cs
- WebPartTracker.cs
- ConnectionPoolManager.cs
- ExtensionFile.cs
- MsmqTransportElement.cs
- MatrixAnimationBase.cs
- DbDataSourceEnumerator.cs
- DBCommandBuilder.cs
- FileCodeGroup.cs
- HitTestParameters3D.cs
- NumberFormatter.cs
- SpellerError.cs
- ConnectionPoint.cs
- FamilyCollection.cs
- MediaTimeline.cs
- XPathNavigatorReader.cs
- ToolboxComponentsCreatingEventArgs.cs
- DescendentsWalkerBase.cs
- NavigationWindowAutomationPeer.cs
- OrderPreservingPipeliningMergeHelper.cs
- Funcletizer.cs
- TextServicesCompartmentContext.cs
- ProcessDesigner.cs
- AsyncWaitHandle.cs
- Section.cs
- SqlReferenceCollection.cs
- _ListenerAsyncResult.cs
- DefaultValueConverter.cs
- SecurityManager.cs
- StateManagedCollection.cs
- EntityTypeBase.cs
- Int32Collection.cs
- JavaScriptSerializer.cs
- ItemsControl.cs
- DecodeHelper.cs
- TableLayoutPanelCodeDomSerializer.cs
- SqlFormatter.cs
- ShapingWorkspace.cs
- WinCategoryAttribute.cs
- XmlSchemaValidator.cs
- Crypto.cs
- RsaSecurityTokenAuthenticator.cs
- CriticalExceptions.cs
- HtmlTableCellCollection.cs
- InteropBitmapSource.cs
- ModelItemCollectionImpl.cs
- AssemblyAttributes.cs
- OutKeywords.cs
- SurrogateEncoder.cs
- DataSetMappper.cs
- XamlRtfConverter.cs
- _Rfc2616CacheValidators.cs
- ProtectedConfigurationProviderCollection.cs
- ObjectHelper.cs
- StreamUpdate.cs
- AppDomainGrammarProxy.cs
- ArraySegment.cs
- ControlUtil.cs
- SystemIcmpV6Statistics.cs
- FlowLayout.cs
- XmlQueryRuntime.cs
- BinHexEncoding.cs
- CalendarTable.cs
- ConnectionsZone.cs
- BinHexDecoder.cs
- XmlValueConverter.cs