Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / tx / System / Transactions / TransactionOptions.cs / 1305376 / TransactionOptions.cs
using System; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; namespace System.Transactions { public struct TransactionOptions { private TimeSpan timeout; private System.Transactions.IsolationLevel isolationLevel; public TimeSpan Timeout { get { return this.timeout; } set { this.timeout = value; } } public System.Transactions.IsolationLevel IsolationLevel { get { return this.isolationLevel; } set { this.isolationLevel = value; } } public override int GetHashCode() { return base.GetHashCode(); // Don't have anything better to do. } public override bool Equals( object obj ) { if( !(obj is TransactionOptions) ) { // Can't use 'as' for a value type return false; } TransactionOptions opts = (TransactionOptions)obj; return (opts.timeout == this.timeout) && (opts.isolationLevel == this.isolationLevel); } // Changing paramater names would be a breaking change for little benefit. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] public static bool operator==( TransactionOptions x, TransactionOptions y ) { return x.Equals( y ); } // Changing paramater names would be a breaking change for little benefit. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] public static bool operator!=( TransactionOptions x, TransactionOptions y ) { return !x.Equals( y ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BooleanFunctions.cs
- EncoderFallback.cs
- XmlNamespaceDeclarationsAttribute.cs
- figurelengthconverter.cs
- WorkflowNamespace.cs
- CultureInfoConverter.cs
- EntityDataSourceDataSelection.cs
- DataSourceXmlAttributeAttribute.cs
- ServiceElementCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- CodeTypeMemberCollection.cs
- Bits.cs
- MultipleViewPattern.cs
- FileResponseElement.cs
- PointConverter.cs
- PenThreadPool.cs
- UserControlParser.cs
- EmptyEnumerable.cs
- ResolveCriteriaApril2005.cs
- AxHost.cs
- XamlFilter.cs
- HandlerBase.cs
- SAPICategories.cs
- StructuredProperty.cs
- EmbeddedObject.cs
- BaseConfigurationRecord.cs
- CodeIdentifier.cs
- BigInt.cs
- ChannelServices.cs
- Literal.cs
- HtmlImage.cs
- ScrollContentPresenter.cs
- TraceHandler.cs
- DataGridRowAutomationPeer.cs
- _FtpDataStream.cs
- ModelItemDictionaryImpl.cs
- MonikerHelper.cs
- CheckableControlBaseAdapter.cs
- WebPartEventArgs.cs
- AggregatePushdown.cs
- StoreContentChangedEventArgs.cs
- RepeaterItemCollection.cs
- WebPartTransformerCollection.cs
- CommonProperties.cs
- TypeDelegator.cs
- TextEmbeddedObject.cs
- CompilationSection.cs
- TemplateControl.cs
- ResourceManager.cs
- ClientSettings.cs
- assertwrapper.cs
- UDPClient.cs
- TraceFilter.cs
- FixedFindEngine.cs
- ResolveCriteria11.cs
- TemplateField.cs
- Type.cs
- TreeWalker.cs
- ComboBoxAutomationPeer.cs
- DesignerRegionCollection.cs
- MailMessage.cs
- ProfileServiceManager.cs
- EmbossBitmapEffect.cs
- bindurihelper.cs
- CallbackValidatorAttribute.cs
- FactoryId.cs
- VirtualDirectoryMappingCollection.cs
- EntityTransaction.cs
- UriSchemeKeyedCollection.cs
- XmlAnyElementAttribute.cs
- ClientApiGenerator.cs
- SqlDataSourceEnumerator.cs
- Pts.cs
- InvalidOperationException.cs
- EventHandlerList.cs
- XslException.cs
- CompoundFileStreamReference.cs
- TimeBoundedCache.cs
- DbDataRecord.cs
- CurrentChangedEventManager.cs
- HttpCapabilitiesSectionHandler.cs
- SmtpCommands.cs
- DesignConnection.cs
- ScrollChrome.cs
- TransportManager.cs
- Inline.cs
- LinkUtilities.cs
- XpsTokenContext.cs
- ListManagerBindingsCollection.cs
- WsdlHelpGeneratorElement.cs
- FunctionUpdateCommand.cs
- RangeValuePatternIdentifiers.cs
- ToolStripDropDownClosedEventArgs.cs
- AppDomainAttributes.cs
- XmlSchemaException.cs
- altserialization.cs
- Cell.cs
- StatementContext.cs
- ServiceMetadataPublishingElement.cs
- cookiecollection.cs