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
- TextEndOfParagraph.cs
- TextBox.cs
- MobileControlBuilder.cs
- Qualifier.cs
- SamlAuthenticationStatement.cs
- SoapObjectWriter.cs
- ContentType.cs
- _BufferOffsetSize.cs
- AsyncCodeActivity.cs
- Zone.cs
- GcSettings.cs
- Matrix.cs
- BackgroundWorker.cs
- BuildProviderUtils.cs
- IChannel.cs
- DataRowCollection.cs
- PageHandlerFactory.cs
- UpdatePanelTriggerCollection.cs
- FormatConvertedBitmap.cs
- SqlSelectStatement.cs
- BlobPersonalizationState.cs
- TrustLevelCollection.cs
- FeatureManager.cs
- ErrorReporting.cs
- NamedObject.cs
- SqlFacetAttribute.cs
- NamedObject.cs
- SynchronizingStream.cs
- Sequence.cs
- PrintPreviewControl.cs
- storagemappingitemcollection.viewdictionary.cs
- ListenerSessionConnectionReader.cs
- DrawingAttributesDefaultValueFactory.cs
- httpserverutility.cs
- OdbcException.cs
- WindowsTokenRoleProvider.cs
- DataRecord.cs
- JournalEntry.cs
- TypeTypeConverter.cs
- MenuAutomationPeer.cs
- CodeRegionDirective.cs
- ProcessHost.cs
- StorageFunctionMapping.cs
- ClassValidator.cs
- StreamWithDictionary.cs
- HtmlTableCellCollection.cs
- SafeEventLogWriteHandle.cs
- IntellisenseTextBox.designer.cs
- CheckableControlBaseAdapter.cs
- AstNode.cs
- BaseResourcesBuildProvider.cs
- Random.cs
- BamlCollectionHolder.cs
- SoapSchemaImporter.cs
- ImmutableObjectAttribute.cs
- MultiPageTextView.cs
- Soap.cs
- LicenseException.cs
- XslVisitor.cs
- SectionInformation.cs
- ProcessModuleCollection.cs
- ConfigurationStrings.cs
- AnnotationMap.cs
- MarshalByValueComponent.cs
- IconHelper.cs
- FontFamilyValueSerializer.cs
- DataComponentNameHandler.cs
- OracleEncoding.cs
- TextSelection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PointAnimation.cs
- SqlDataRecord.cs
- HttpGetServerProtocol.cs
- DesignerUtility.cs
- CodeGen.cs
- DynamicValueConverter.cs
- Viewport3DVisual.cs
- ProviderConnectionPoint.cs
- CodeExpressionCollection.cs
- MergablePropertyAttribute.cs
- Properties.cs
- GridEntryCollection.cs
- TakeQueryOptionExpression.cs
- ExpressionTable.cs
- HtmlEmptyTagControlBuilder.cs
- PersonalizableAttribute.cs
- HtmlFormAdapter.cs
- RewritingSimplifier.cs
- GetWinFXPath.cs
- ComboBox.cs
- StaticExtensionConverter.cs
- X509UI.cs
- GPPOINT.cs
- ArrayWithOffset.cs
- ProfileService.cs
- DropShadowEffect.cs
- CellIdBoolean.cs
- OutputCacheProfileCollection.cs
- ResizeGrip.cs
- SystemThemeKey.cs