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
- ProfileBuildProvider.cs
- ParserStreamGeometryContext.cs
- Symbol.cs
- SerializationHelper.cs
- ClientSponsor.cs
- EntityDataSourceWrapper.cs
- WebRequest.cs
- DesignTableCollection.cs
- VirtualPathProvider.cs
- TypedDataSetSchemaImporterExtension.cs
- MenuItemAutomationPeer.cs
- SafeSystemMetrics.cs
- NullableIntSumAggregationOperator.cs
- SubpageParagraph.cs
- mansign.cs
- Splitter.cs
- FlowPosition.cs
- MarkupCompilePass2.cs
- ListSortDescriptionCollection.cs
- EncryptedReference.cs
- NavigationPropertyEmitter.cs
- IconConverter.cs
- ApplicationContext.cs
- PanelStyle.cs
- SafeHandles.cs
- CannotUnloadAppDomainException.cs
- FileEnumerator.cs
- DataColumnChangeEvent.cs
- DataGridViewCellStyleBuilderDialog.cs
- GenericPrincipal.cs
- ServiceDesigner.xaml.cs
- MappingItemCollection.cs
- _UncName.cs
- WindowsUpDown.cs
- TransformGroup.cs
- MapPathBasedVirtualPathProvider.cs
- ArrangedElement.cs
- Pair.cs
- AutoResetEvent.cs
- DataTableClearEvent.cs
- SchemaType.cs
- ResourceManager.cs
- GeneralTransform.cs
- LinkLabelLinkClickedEvent.cs
- SizeLimitedCache.cs
- ResourceWriter.cs
- CustomErrorCollection.cs
- MappedMetaModel.cs
- Span.cs
- ListenerElementsCollection.cs
- EncoderNLS.cs
- InfoCardCryptoHelper.cs
- OptimizerPatterns.cs
- BuildManagerHost.cs
- UnSafeCharBuffer.cs
- ImmComposition.cs
- ServiceBuildProvider.cs
- SvcFileManager.cs
- SchemaCollectionPreprocessor.cs
- ExportException.cs
- DocumentApplicationJournalEntry.cs
- Translator.cs
- DataControlFieldHeaderCell.cs
- ControlTemplate.cs
- ThumbButtonInfo.cs
- BoolExpression.cs
- HtmlFormWrapper.cs
- ImpersonationContext.cs
- BrowserCapabilitiesFactoryBase.cs
- SystemMulticastIPAddressInformation.cs
- CharacterBuffer.cs
- CustomWebEventKey.cs
- ReadOnlyObservableCollection.cs
- FloaterBaseParaClient.cs
- SoapEnvelopeProcessingElement.cs
- WebSysDescriptionAttribute.cs
- webclient.cs
- ColorConvertedBitmap.cs
- xml.cs
- WebPartDisplayModeCollection.cs
- OletxEnlistment.cs
- Normalization.cs
- XPathArrayIterator.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ListBoxItemAutomationPeer.cs
- BitmapEffect.cs
- UnsafeNativeMethodsMilCoreApi.cs
- BorderGapMaskConverter.cs
- List.cs
- CustomErrorsSection.cs
- HtmlTableRowCollection.cs
- ChildDocumentBlock.cs
- Pkcs9Attribute.cs
- ScopelessEnumAttribute.cs
- DataContractSet.cs
- BaseAsyncResult.cs
- WaitHandleCannotBeOpenedException.cs
- HandlerFactoryCache.cs
- TileModeValidation.cs
- NetDataContractSerializer.cs