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
- XmlILStorageConverter.cs
- RewritingProcessor.cs
- CreateUserWizardStep.cs
- ISAPIApplicationHost.cs
- SqlStatistics.cs
- DesignerDataColumn.cs
- PriorityBindingExpression.cs
- ControlBindingsCollection.cs
- PopupRoot.cs
- NegotiateStream.cs
- WebMessageFormatHelper.cs
- StyleConverter.cs
- ListMarkerLine.cs
- InternalConfigHost.cs
- StatusBar.cs
- XComponentModel.cs
- QueryPageSettingsEventArgs.cs
- StaticExtension.cs
- PropertyDescriptorComparer.cs
- BamlLocalizableResource.cs
- WebPermission.cs
- XmlWriterDelegator.cs
- ActiveXContainer.cs
- Matrix.cs
- CmsInterop.cs
- AdornedElementPlaceholder.cs
- ConnectionPoolManager.cs
- MultipleViewProviderWrapper.cs
- ConfigXmlElement.cs
- MetadataSerializer.cs
- LicenseManager.cs
- PrintDocument.cs
- MailWebEventProvider.cs
- BamlLocalizer.cs
- PhysicalOps.cs
- Int32RectConverter.cs
- AlternateView.cs
- XsdDataContractImporter.cs
- DataControlImageButton.cs
- CustomDictionarySources.cs
- SymLanguageVendor.cs
- AppDomainManager.cs
- PersistChildrenAttribute.cs
- RoleManagerSection.cs
- Floater.cs
- GridViewRow.cs
- XPathNodeInfoAtom.cs
- EventProxy.cs
- QueryCacheManager.cs
- ScriptManager.cs
- InputReferenceExpression.cs
- SingleQueryOperator.cs
- PerspectiveCamera.cs
- WebPartDisplayModeCancelEventArgs.cs
- UnmanagedBitmapWrapper.cs
- IntPtr.cs
- XmlIlVisitor.cs
- DependencySource.cs
- Comparer.cs
- EditorAttribute.cs
- GeometryGroup.cs
- ProfilePropertySettingsCollection.cs
- ActiveXContainer.cs
- RelationshipConverter.cs
- Char.cs
- WebPartHeaderCloseVerb.cs
- SafeRegistryHandle.cs
- TextEffectCollection.cs
- CodeIdentifiers.cs
- SessionStateItemCollection.cs
- TypefaceCollection.cs
- PenThreadWorker.cs
- WsatProxy.cs
- BatchParser.cs
- InputLanguageSource.cs
- DynamicPropertyReader.cs
- DataObjectAttribute.cs
- ArithmeticException.cs
- DataRowExtensions.cs
- TrackingProfile.cs
- SimpleWebHandlerParser.cs
- PeerNameResolver.cs
- UDPClient.cs
- NamespaceInfo.cs
- ObjectDataSourceEventArgs.cs
- CompareInfo.cs
- CodeTypeDeclarationCollection.cs
- SiteMapNodeItemEventArgs.cs
- FunctionQuery.cs
- WebPartDisplayModeCollection.cs
- InheritedPropertyChangedEventArgs.cs
- DelegateHelpers.cs
- FormsAuthentication.cs
- ParameterModifier.cs
- HttpsChannelListener.cs
- FastEncoderWindow.cs
- ResolveMatchesApril2005.cs
- BatchStream.cs
- ComponentChangingEvent.cs
- DataGridViewCellParsingEventArgs.cs