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
- NotifyInputEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- MouseEventArgs.cs
- RawStylusInputReport.cs
- PointLight.cs
- SchemaCreator.cs
- InternalSendMessage.cs
- SmiRecordBuffer.cs
- MenuItemBindingCollection.cs
- KeyboardNavigation.cs
- Site.cs
- SecurityDescriptor.cs
- CodeIndexerExpression.cs
- IntranetCredentialPolicy.cs
- XmlUnspecifiedAttribute.cs
- SoapMessage.cs
- FontCacheUtil.cs
- PatternMatcher.cs
- DocumentPage.cs
- AsyncStreamReader.cs
- Expander.cs
- DataShape.cs
- ObjectDataProvider.cs
- CatalogZoneBase.cs
- DataGridViewRowPrePaintEventArgs.cs
- Rights.cs
- Encoder.cs
- PageFunction.cs
- HttpHandlersSection.cs
- TypeDefinition.cs
- XmlNavigatorFilter.cs
- TypedTableBase.cs
- streamingZipPartStream.cs
- SynchronizationLockException.cs
- SqlFlattener.cs
- PartitionResolver.cs
- TakeQueryOptionExpression.cs
- Vector3DIndependentAnimationStorage.cs
- __Filters.cs
- UpdateCompiler.cs
- CacheDependency.cs
- M3DUtil.cs
- SamlAttributeStatement.cs
- TextComposition.cs
- SortQuery.cs
- DataGridSortCommandEventArgs.cs
- CheckableControlBaseAdapter.cs
- SafeBitVector32.cs
- ApplicationInfo.cs
- PeerNameRecord.cs
- WebPartConnectionsConnectVerb.cs
- HttpModulesSection.cs
- StateBag.cs
- DesignerUtils.cs
- TextParentUndoUnit.cs
- Tuple.cs
- TimeSpan.cs
- DataObjectSettingDataEventArgs.cs
- AngleUtil.cs
- mediaeventshelper.cs
- TableSectionStyle.cs
- SingleAnimationUsingKeyFrames.cs
- ControlParameter.cs
- TableRowGroup.cs
- WindowsRichEditRange.cs
- _BaseOverlappedAsyncResult.cs
- CodeDesigner.cs
- ExpressionEvaluator.cs
- FloaterParagraph.cs
- _Connection.cs
- DataControlFieldTypeEditor.cs
- TemplateBuilder.cs
- EmptyQuery.cs
- LineGeometry.cs
- x509utils.cs
- DBDataPermissionAttribute.cs
- ipaddressinformationcollection.cs
- PageAsyncTaskManager.cs
- DictionaryBase.cs
- HtmlEncodedRawTextWriter.cs
- WorkflowServiceAttributes.cs
- CommandField.cs
- VectorKeyFrameCollection.cs
- Symbol.cs
- TransformPatternIdentifiers.cs
- FactoryGenerator.cs
- VirtualPathProvider.cs
- ComplexTypeEmitter.cs
- ServicesUtilities.cs
- RegexWriter.cs
- RadioButton.cs
- RadialGradientBrush.cs
- Unit.cs
- TlsnegoTokenAuthenticator.cs
- Vars.cs
- GacUtil.cs
- HttpModuleCollection.cs
- ItemsControlAutomationPeer.cs
- WpfKnownType.cs
- CommunicationObjectFaultedException.cs