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
- ReliabilityContractAttribute.cs
- BufferBuilder.cs
- FixedPosition.cs
- SqlConnectionManager.cs
- Bold.cs
- InputBuffer.cs
- RawStylusInput.cs
- ProtocolElementCollection.cs
- OleDbReferenceCollection.cs
- StringComparer.cs
- URLMembershipCondition.cs
- Context.cs
- Sql8ConformanceChecker.cs
- LayoutInformation.cs
- SHA1CryptoServiceProvider.cs
- CapiSafeHandles.cs
- DataGridTableCollection.cs
- LinkDescriptor.cs
- ConstrainedDataObject.cs
- InkCanvas.cs
- MouseEventArgs.cs
- SslStream.cs
- ImageCollectionEditor.cs
- HttpHandlerActionCollection.cs
- CursorConverter.cs
- WindowsGraphics.cs
- X509UI.cs
- PieceNameHelper.cs
- Keywords.cs
- Assembly.cs
- FunctionCommandText.cs
- ToolStripGripRenderEventArgs.cs
- Decimal.cs
- ValueExpressions.cs
- OrderByQueryOptionExpression.cs
- XmlBaseReader.cs
- ForeignConstraint.cs
- SubpageParagraph.cs
- AssociationTypeEmitter.cs
- SecurityDescriptor.cs
- TriggerAction.cs
- InvokeMemberBinder.cs
- GifBitmapEncoder.cs
- HtmlShim.cs
- xsdvalidator.cs
- DefaultTextStoreTextComposition.cs
- BoundField.cs
- WmfPlaceableFileHeader.cs
- ObjectPropertyMapping.cs
- ThemeableAttribute.cs
- CodeMethodReturnStatement.cs
- GiveFeedbackEventArgs.cs
- Constraint.cs
- FrameDimension.cs
- BaseParagraph.cs
- coordinatorfactory.cs
- ResourceDictionary.cs
- ApplicationId.cs
- ServiceReference.cs
- FamilyTypeface.cs
- ScaleTransform.cs
- RTLAwareMessageBox.cs
- IsolatedStorage.cs
- ExpressionBuilderCollection.cs
- X509SecurityTokenAuthenticator.cs
- SwitchCase.cs
- InfoCardTrace.cs
- CommandPlan.cs
- ConditionCollection.cs
- GridViewUpdateEventArgs.cs
- HttpApplicationFactory.cs
- RegistrationServices.cs
- RefExpr.cs
- XmlExpressionDumper.cs
- CodeTypeReferenceSerializer.cs
- Size3DValueSerializer.cs
- MimeFormReflector.cs
- MimeObjectFactory.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ThreadLocal.cs
- ComplexType.cs
- UnknownBitmapEncoder.cs
- AddInSegmentDirectoryNotFoundException.cs
- StorageEntitySetMapping.cs
- CqlParserHelpers.cs
- XmlSchemaAny.cs
- DiffuseMaterial.cs
- ImpersonationContext.cs
- TypeBuilder.cs
- MULTI_QI.cs
- MimeImporter.cs
- SurrogateEncoder.cs
- SyndicationSerializer.cs
- ExtensionDataReader.cs
- NamespaceDisplay.xaml.cs
- StatusBarAutomationPeer.cs
- UnSafeCharBuffer.cs
- DatatypeImplementation.cs
- Odbc32.cs
- WebBrowser.cs