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
- TextClipboardData.cs
- ToolStripPanelRow.cs
- MobileUITypeEditor.cs
- OptimizedTemplateContent.cs
- SqlUserDefinedAggregateAttribute.cs
- GridView.cs
- CommandConverter.cs
- CompressEmulationStream.cs
- RoutingConfiguration.cs
- DictionaryMarkupSerializer.cs
- ComPlusServiceLoader.cs
- UnlockInstanceCommand.cs
- IProvider.cs
- HtmlElement.cs
- SqlStream.cs
- Stack.cs
- RootBrowserWindowAutomationPeer.cs
- ApplicationActivator.cs
- TextReader.cs
- PropertyFilterAttribute.cs
- PropertyEmitter.cs
- HttpCacheParams.cs
- DBParameter.cs
- PopupEventArgs.cs
- SoapMessage.cs
- Pens.cs
- EntityModelSchemaGenerator.cs
- ProvideValueServiceProvider.cs
- NativeMethods.cs
- DbException.cs
- CommandValueSerializer.cs
- SpeechEvent.cs
- SchemaAttDef.cs
- SerialReceived.cs
- RequestCachingSection.cs
- IndexedGlyphRun.cs
- XamlSerializerUtil.cs
- DebuggerAttributes.cs
- TriggerAction.cs
- ServicesUtilities.cs
- SmiGettersStream.cs
- Vars.cs
- PageCatalogPart.cs
- ObjectComplexPropertyMapping.cs
- PaperSize.cs
- XmlSchemaImporter.cs
- TextEditorContextMenu.cs
- _KerberosClient.cs
- DataServiceKeyAttribute.cs
- CheckBoxPopupAdapter.cs
- HttpServerProtocol.cs
- XmlAnyElementAttribute.cs
- AppDomainResourcePerfCounters.cs
- TogglePatternIdentifiers.cs
- ReferentialConstraint.cs
- PointKeyFrameCollection.cs
- TiffBitmapDecoder.cs
- XsltArgumentList.cs
- ellipse.cs
- CultureTable.cs
- ImageField.cs
- HybridDictionary.cs
- PageClientProxyGenerator.cs
- ViewCellRelation.cs
- ColumnResizeAdorner.cs
- BCryptNative.cs
- ReflectEventDescriptor.cs
- TheQuery.cs
- XmlFormatWriterGenerator.cs
- Internal.cs
- SqlColumnizer.cs
- ConnectionManager.cs
- MultiTrigger.cs
- CustomErrorsSection.cs
- ValidationErrorEventArgs.cs
- ToolStripArrowRenderEventArgs.cs
- TextEditorTyping.cs
- RoutedPropertyChangedEventArgs.cs
- CustomAttributeFormatException.cs
- ForceCopyBuildProvider.cs
- ValueTypeFieldReference.cs
- CacheHelper.cs
- MessageQuerySet.cs
- ObjectItemCollection.cs
- oledbconnectionstring.cs
- ActiveDocumentEvent.cs
- XdrBuilder.cs
- StorageEndPropertyMapping.cs
- HttpRequest.cs
- Point3DCollectionConverter.cs
- PassportIdentity.cs
- DataGridRowHeader.cs
- CategoryGridEntry.cs
- M3DUtil.cs
- ManualResetEventSlim.cs
- WarningException.cs
- SupportsEventValidationAttribute.cs
- OrderedDictionary.cs
- RadioButtonPopupAdapter.cs
- XsdValidatingReader.cs