Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / safelinkcollection.cs / 1305376 / safelinkcollection.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Metadata.Edm; using System.Diagnostics; namespace System.Data.Metadata.Edm { ////// This class attempts to make a double linked connection between a parent and child withou /// exposing the properties publicly that would allow them to be mutible and possibly dangerous /// in a multithreading environment /// ////// internal class SafeLinkCollection : ReadOnlyMetadataCollection where TChild : MetadataItem where TParent : class { public SafeLinkCollection(TParent parent, Func > getLink, MetadataCollection children) : base((IList )SafeLink .BindChildren(parent, getLink, children)) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Metadata.Edm; using System.Diagnostics; namespace System.Data.Metadata.Edm { ////// This class attempts to make a double linked connection between a parent and child withou /// exposing the properties publicly that would allow them to be mutible and possibly dangerous /// in a multithreading environment /// ////// internal class SafeLinkCollection : ReadOnlyMetadataCollection where TChild : MetadataItem where TParent : class { public SafeLinkCollection(TParent parent, Func > getLink, MetadataCollection children) : base((IList )SafeLink .BindChildren(parent, getLink, children)) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompilationUtil.cs
- Column.cs
- Assert.cs
- TimeEnumHelper.cs
- ImageFormatConverter.cs
- elementinformation.cs
- ITreeGenerator.cs
- DateTimeOffsetAdapter.cs
- MaskedTextBox.cs
- StylusPointPropertyInfoDefaults.cs
- WebPartManagerInternals.cs
- StandardCommands.cs
- SiteMapNodeItem.cs
- InternalCache.cs
- HashMembershipCondition.cs
- Assembly.cs
- XhtmlTextWriter.cs
- TableLayoutCellPaintEventArgs.cs
- DbDataRecord.cs
- HostDesigntimeLicenseContext.cs
- KeyboardDevice.cs
- EventLogPermission.cs
- UnsafeNativeMethodsCLR.cs
- CodeCommentStatement.cs
- DetailsView.cs
- UrlMapping.cs
- PolicyLevel.cs
- ByteStream.cs
- DomNameTable.cs
- ServiceBusyException.cs
- StateRuntime.cs
- GiveFeedbackEventArgs.cs
- PeerName.cs
- SecurityDescriptor.cs
- ItemCheckedEvent.cs
- RectIndependentAnimationStorage.cs
- SafeArchiveContext.cs
- DataObjectCopyingEventArgs.cs
- URL.cs
- ScrollChangedEventArgs.cs
- ExpressionLink.cs
- DataGridViewAdvancedBorderStyle.cs
- AsymmetricKeyExchangeFormatter.cs
- GridViewRowPresenter.cs
- FieldAccessException.cs
- AudioFormatConverter.cs
- DependencyPropertyConverter.cs
- DataSourceCacheDurationConverter.cs
- StringValueSerializer.cs
- PropertyTabChangedEvent.cs
- GeneralTransform3D.cs
- WebPartExportVerb.cs
- XmlRawWriter.cs
- FormViewRow.cs
- SQLByte.cs
- LinqDataSourceDeleteEventArgs.cs
- UserControlAutomationPeer.cs
- SwitchElementsCollection.cs
- Quaternion.cs
- RemoteWebConfigurationHost.cs
- XmlDocument.cs
- BuildProvidersCompiler.cs
- EncodingTable.cs
- LockRecoveryTask.cs
- SystemResourceHost.cs
- TabItemWrapperAutomationPeer.cs
- CrossContextChannel.cs
- SoapCodeExporter.cs
- HtmlLink.cs
- RequestCacheValidator.cs
- ToolZone.cs
- RadioButton.cs
- MailAddress.cs
- ModifierKeysValueSerializer.cs
- HtmlInputHidden.cs
- MachineKeySection.cs
- SchemaElementLookUpTableEnumerator.cs
- ProtectedProviderSettings.cs
- XmlSchemaComplexContent.cs
- DetailsViewCommandEventArgs.cs
- LookupBindingPropertiesAttribute.cs
- BufferModesCollection.cs
- TagMapInfo.cs
- Enumerable.cs
- WindowsTab.cs
- SpellerInterop.cs
- Int32RectConverter.cs
- TraceListeners.cs
- InvalidPropValue.cs
- EventLogConfiguration.cs
- NonBatchDirectoryCompiler.cs
- TraceContextRecord.cs
- SByteConverter.cs
- EndpointAddressAugust2004.cs
- DetailsViewUpdateEventArgs.cs
- EndpointAddressElementBase.cs
- Table.cs
- IndexedEnumerable.cs
- ConvertEvent.cs
- String.cs