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
- RecognizedAudio.cs
- InvalidPrinterException.cs
- FontCollection.cs
- ContainerParagraph.cs
- PersonalizationEntry.cs
- ArgumentException.cs
- XhtmlBasicTextBoxAdapter.cs
- Calendar.cs
- AutomationIdentifierGuids.cs
- UnsafeNativeMethods.cs
- DataBindingsDialog.cs
- DLinqDataModelProvider.cs
- AttributeAction.cs
- TreeNodeCollection.cs
- EntityWrapperFactory.cs
- EraserBehavior.cs
- dataSvcMapFileLoader.cs
- CodeNamespaceCollection.cs
- GenericTypeParameterBuilder.cs
- PersonalizationAdministration.cs
- GenericIdentity.cs
- KnownAssembliesSet.cs
- control.ime.cs
- InternalSafeNativeMethods.cs
- versioninfo.cs
- TypeValidationEventArgs.cs
- DiscoveryOperationContextExtension.cs
- FormViewCommandEventArgs.cs
- WebPartConnection.cs
- InputScope.cs
- DriveNotFoundException.cs
- ExceptionUtil.cs
- NetworkAddressChange.cs
- DependencyObject.cs
- CreateParams.cs
- HtmlSelect.cs
- DesignerMetadata.cs
- EventLogReader.cs
- HandlerWithFactory.cs
- SmtpReplyReader.cs
- SafeFileMappingHandle.cs
- COAUTHINFO.cs
- NavigatingCancelEventArgs.cs
- PrintPageEvent.cs
- odbcmetadatacolumnnames.cs
- EncoderBestFitFallback.cs
- XAMLParseException.cs
- WizardStepBase.cs
- Adorner.cs
- FileDialog_Vista.cs
- TimeoutException.cs
- SQLInt32Storage.cs
- XmlAnyElementAttributes.cs
- UndoManager.cs
- DelegatingConfigHost.cs
- BitmapEffectState.cs
- EntityDataSourceDataSelectionPanel.cs
- AttributeQuery.cs
- DateTimeOffset.cs
- InfoCardBaseException.cs
- Vector3DAnimationBase.cs
- DataGridViewAddColumnDialog.cs
- OutArgumentConverter.cs
- RepeaterDataBoundAdapter.cs
- NameValueFileSectionHandler.cs
- TemplateDefinition.cs
- QuotedPrintableStream.cs
- SqlEnums.cs
- MessageSecurityOverTcp.cs
- FixedMaxHeap.cs
- OdbcConnectionOpen.cs
- SerializationEventsCache.cs
- DescendantBaseQuery.cs
- SQLInt32Storage.cs
- InputLanguageSource.cs
- X509CertificateClaimSet.cs
- OpenTypeCommon.cs
- PreloadedPackages.cs
- BitArray.cs
- RuntimeHandles.cs
- WebServiceFault.cs
- WebSysDescriptionAttribute.cs
- TriggerBase.cs
- DaylightTime.cs
- ByteStreamMessageEncoder.cs
- SafeLocalMemHandle.cs
- OleDbRowUpdatingEvent.cs
- Convert.cs
- ImageFormat.cs
- MetaChildrenColumn.cs
- Parser.cs
- BaseResourcesBuildProvider.cs
- EntryPointNotFoundException.cs
- SystemUnicastIPAddressInformation.cs
- SourceFilter.cs
- NumericExpr.cs
- SqlUtils.cs
- Helpers.cs
- ListSortDescriptionCollection.cs
- Matrix3D.cs