Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / safelinkcollection.cs / 1 / safelinkcollection.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- 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 [....], [....] //--------------------------------------------------------------------- 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
- TransactionBridgeSection.cs
- SqlStatistics.cs
- PolyLineSegment.cs
- ForceCopyBuildProvider.cs
- FaultConverter.cs
- PopupEventArgs.cs
- FixedSOMTableRow.cs
- PersonalizationStateInfo.cs
- ExpressionPrefixAttribute.cs
- EmbeddedMailObject.cs
- CodeDomSerializer.cs
- SchemaAttDef.cs
- WindowsSlider.cs
- QueryResults.cs
- OleDbEnumerator.cs
- LocalizabilityAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ToolZone.cs
- InstanceKeyView.cs
- ProtectedProviderSettings.cs
- InvalidateEvent.cs
- DataGridViewIntLinkedList.cs
- UrlMapping.cs
- HashCodeCombiner.cs
- smtpconnection.cs
- ZipPackagePart.cs
- XmlLangPropertyAttribute.cs
- DBPropSet.cs
- QualifierSet.cs
- HeaderElement.cs
- SmuggledIUnknown.cs
- WebPartCloseVerb.cs
- StringToken.cs
- DetectEofStream.cs
- ParserContext.cs
- BrowserCapabilitiesFactoryBase.cs
- TextBounds.cs
- XMLUtil.cs
- ExcludeFromCodeCoverageAttribute.cs
- OleDbStruct.cs
- ValueOfAction.cs
- SerializationException.cs
- ThreadExceptionDialog.cs
- DeploymentSection.cs
- EntityDataSourceContainerNameConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MediaTimeline.cs
- ExceptionUtil.cs
- BaseServiceProvider.cs
- WindowAutomationPeer.cs
- BitmapEffectGeneralTransform.cs
- ListViewEditEventArgs.cs
- TextSegment.cs
- ColorPalette.cs
- XmlILAnnotation.cs
- SiteIdentityPermission.cs
- DataSourceCacheDurationConverter.cs
- MultiplexingFormatMapping.cs
- URLAttribute.cs
- FixedTextBuilder.cs
- BlurBitmapEffect.cs
- SchemaElement.cs
- BuildManagerHost.cs
- CodePageUtils.cs
- TypeTypeConverter.cs
- SQLCharsStorage.cs
- PageCatalogPart.cs
- FormsAuthenticationTicket.cs
- LoginView.cs
- LabelEditEvent.cs
- XXXInfos.cs
- List.cs
- Schema.cs
- MergeEnumerator.cs
- StorageMappingItemLoader.cs
- SafeRegistryHandle.cs
- GlyphingCache.cs
- DataStorage.cs
- UInt16.cs
- HtmlFormParameterReader.cs
- MessageBox.cs
- XsdDateTime.cs
- SafeFileMapViewHandle.cs
- WebPartEditorApplyVerb.cs
- NonBatchDirectoryCompiler.cs
- DecimalMinMaxAggregationOperator.cs
- TypeElement.cs
- WebPartManager.cs
- SmiGettersStream.cs
- ISAPIApplicationHost.cs
- DynamicDocumentPaginator.cs
- WindowsListViewGroupSubsetLink.cs
- CacheVirtualItemsEvent.cs
- ISCIIEncoding.cs
- DiscoveryDocument.cs
- Interfaces.cs
- ConfigurationStrings.cs
- DelegatedStream.cs
- FlowSwitchDesigner.xaml.cs
- WindowsEditBoxRange.cs