Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- LinkLabel.cs
- CodeBlockBuilder.cs
- Comparer.cs
- EncodingDataItem.cs
- ListControlActionList.cs
- Span.cs
- ElapsedEventArgs.cs
- BinaryFormatterWriter.cs
- SiteMapNodeItemEventArgs.cs
- WindowsTab.cs
- TextDecorationCollection.cs
- TypeCacheManager.cs
- DataSourceControlBuilder.cs
- ObjectListShowCommandsEventArgs.cs
- ListInitExpression.cs
- XpsTokenContext.cs
- PtsContext.cs
- validationstate.cs
- DependencyObject.cs
- ObjectListFieldCollection.cs
- Selector.cs
- TriggerActionCollection.cs
- SendingRequestEventArgs.cs
- SchemaImporterExtensionElement.cs
- ResourceAttributes.cs
- BypassElementCollection.cs
- DesignerLinkAdapter.cs
- Activity.cs
- XmlReaderDelegator.cs
- ViewBox.cs
- ScriptModule.cs
- SystemColorTracker.cs
- ItemCheckedEvent.cs
- AnnotationHighlightLayer.cs
- FontFamily.cs
- PassportAuthentication.cs
- GradientStop.cs
- ParallelDesigner.xaml.cs
- ColorTranslator.cs
- XmlSchemaComplexContentExtension.cs
- CookieProtection.cs
- TypeUtils.cs
- WebPartMenuStyle.cs
- RectAnimation.cs
- HMACSHA512.cs
- DrawingCollection.cs
- XsltFunctions.cs
- TcpAppDomainProtocolHandler.cs
- ClientTargetSection.cs
- LicFileLicenseProvider.cs
- Utils.cs
- XmlDocumentFieldSchema.cs
- MultiView.cs
- SplitterEvent.cs
- RunWorkerCompletedEventArgs.cs
- XmlNamedNodeMap.cs
- ProfileEventArgs.cs
- ClockGroup.cs
- FieldReference.cs
- DropTarget.cs
- LinkedResource.cs
- FrameDimension.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TemplateControl.cs
- TrustLevel.cs
- DrawListViewColumnHeaderEventArgs.cs
- LinqDataSource.cs
- UshortList2.cs
- IncrementalCompileAnalyzer.cs
- PersonalizableTypeEntry.cs
- InputChannelBinder.cs
- GeneratedCodeAttribute.cs
- CatalogPartChrome.cs
- XPathPatternBuilder.cs
- XmlStreamStore.cs
- MailWriter.cs
- TypedAsyncResult.cs
- ServiceDesigner.cs
- ScrollBar.cs
- RtfControls.cs
- HwndProxyElementProvider.cs
- AsymmetricAlgorithm.cs
- TraceUtility.cs
- OrderByBuilder.cs
- AdornedElementPlaceholder.cs
- XmlSchemas.cs
- SchemaCreator.cs
- PersonalizationState.cs
- RegexCharClass.cs
- WebSysDefaultValueAttribute.cs
- MetadataArtifactLoaderComposite.cs
- TemplatePropertyEntry.cs
- DeclaredTypeValidator.cs
- Point.cs
- SizeValueSerializer.cs
- XpsS0ValidatingLoader.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DataRowView.cs
- TextLineResult.cs
- InternalRelationshipCollection.cs