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
- ContentElementCollection.cs
- SuppressMessageAttribute.cs
- CharacterMetrics.cs
- DesignerEditorPartChrome.cs
- CollectionChangedEventManager.cs
- FilteredDataSetHelper.cs
- SingleAnimation.cs
- ObjectQuery.cs
- GlobalAclOperationRequirement.cs
- clipboard.cs
- LinkLabelLinkClickedEvent.cs
- WizardPanelChangingEventArgs.cs
- FileSecurity.cs
- ParameterBuilder.cs
- StreamUpdate.cs
- ClientBuildManager.cs
- Util.cs
- TableLayout.cs
- AuthenticateEventArgs.cs
- MethodBuilderInstantiation.cs
- DynamicRendererThreadManager.cs
- ScriptBehaviorDescriptor.cs
- SqlDependency.cs
- TextParagraphProperties.cs
- PrimaryKeyTypeConverter.cs
- InvalidWMPVersionException.cs
- NodeLabelEditEvent.cs
- ServiceMemoryGates.cs
- BaseTemplateParser.cs
- PartitionResolver.cs
- CodeFieldReferenceExpression.cs
- DataServiceQueryException.cs
- ResourceIDHelper.cs
- InfiniteTimeSpanConverter.cs
- HtmlControl.cs
- PropertyConverter.cs
- ReturnValue.cs
- BuildProvider.cs
- EventData.cs
- WrappedReader.cs
- WCFServiceClientProxyGenerator.cs
- ToolStripContentPanelRenderEventArgs.cs
- XPathSingletonIterator.cs
- TranslateTransform3D.cs
- DescendentsWalker.cs
- GridViewRowEventArgs.cs
- FrugalList.cs
- Documentation.cs
- PassportIdentity.cs
- ServiceDescriptionImporter.cs
- SizeValueSerializer.cs
- SqlHelper.cs
- ResolveNextArgumentWorkItem.cs
- SqlInternalConnectionTds.cs
- TableLayoutRowStyleCollection.cs
- IdentityValidationException.cs
- Missing.cs
- NamespaceInfo.cs
- SafeLibraryHandle.cs
- Mapping.cs
- TlsSspiNegotiation.cs
- DynamicResourceExtensionConverter.cs
- DataBoundControlParameterTarget.cs
- DisplayNameAttribute.cs
- ResourcesBuildProvider.cs
- CodeGeneratorOptions.cs
- LeafCellTreeNode.cs
- SwitchElementsCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DbMetaDataCollectionNames.cs
- WindowsGraphics.cs
- SerializationStore.cs
- ImportFileRequest.cs
- OutputCacheProfileCollection.cs
- WaitForChangedResult.cs
- WebCategoryAttribute.cs
- OleDbReferenceCollection.cs
- DataTemplateKey.cs
- PropertyGridDesigner.cs
- MSAAEventDispatcher.cs
- BamlMapTable.cs
- PropertyMappingExceptionEventArgs.cs
- Vector3dCollection.cs
- versioninfo.cs
- FormsAuthenticationCredentials.cs
- Array.cs
- DependencyPropertyKind.cs
- BindStream.cs
- ImageDrawing.cs
- RegistryExceptionHelper.cs
- X509InitiatorCertificateClientElement.cs
- BinaryObjectInfo.cs
- TextBox.cs
- ProviderIncompatibleException.cs
- TextRangeEditTables.cs
- EventLogPermissionEntry.cs
- Imaging.cs
- Utility.cs
- TdsParameterSetter.cs
- ScrollableControlDesigner.cs