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
- NamespaceCollection.cs
- XhtmlBasicLinkAdapter.cs
- MediaSystem.cs
- ArrayElementGridEntry.cs
- ClosureBinding.cs
- SQLBinary.cs
- MeshGeometry3D.cs
- GC.cs
- CallbackValidatorAttribute.cs
- CustomMenuItemCollection.cs
- TextAutomationPeer.cs
- ContainerControlDesigner.cs
- SimpleApplicationHost.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- GrammarBuilderRuleRef.cs
- GridLength.cs
- WebPartMovingEventArgs.cs
- CodeValidator.cs
- GenericParameterDataContract.cs
- TableColumn.cs
- OracleFactory.cs
- DocumentPageView.cs
- CompilationRelaxations.cs
- XmlSchemaImporter.cs
- MultilineStringEditor.cs
- BaseTemplateBuildProvider.cs
- InternalSafeNativeMethods.cs
- WorkflowQueuingService.cs
- PeerContact.cs
- WebConfigurationManager.cs
- BindingRestrictions.cs
- FixedSOMGroup.cs
- Graphics.cs
- ChtmlPhoneCallAdapter.cs
- InheritedPropertyChangedEventArgs.cs
- ExecutionTracker.cs
- GridErrorDlg.cs
- CheckedPointers.cs
- BackStopAuthenticationModule.cs
- PathFigureCollection.cs
- CreateUserWizardStep.cs
- QilCloneVisitor.cs
- TreeNode.cs
- TraceProvider.cs
- SQlBooleanStorage.cs
- IPipelineRuntime.cs
- TCPListener.cs
- OperationInfo.cs
- ContractTypeNameCollection.cs
- HandlerFactoryCache.cs
- GeneralTransform.cs
- PointAnimationClockResource.cs
- HttpRuntime.cs
- Debug.cs
- OdbcCommand.cs
- XmlSchemaComplexContentRestriction.cs
- StateMachineSubscription.cs
- InkCollectionBehavior.cs
- InputDevice.cs
- OdbcParameter.cs
- XmlSchemaExternal.cs
- RegexRunnerFactory.cs
- Utilities.cs
- MessageBuilder.cs
- WebCategoryAttribute.cs
- FlagsAttribute.cs
- StringAnimationUsingKeyFrames.cs
- WebPartPersonalization.cs
- WeakEventManager.cs
- TableParaClient.cs
- IntegerValidatorAttribute.cs
- ObjectHelper.cs
- GCHandleCookieTable.cs
- SHA256.cs
- xmlformatgeneratorstatics.cs
- ImmutableObjectAttribute.cs
- AnimatedTypeHelpers.cs
- TypeConverterMarkupExtension.cs
- TextUtf8RawTextWriter.cs
- TraceLevelHelper.cs
- Int32Rect.cs
- DefaultSection.cs
- WebDisplayNameAttribute.cs
- WindowsTokenRoleProvider.cs
- HTMLTextWriter.cs
- ScrollableControlDesigner.cs
- ReplacementText.cs
- Image.cs
- X509RecipientCertificateServiceElement.cs
- ToolStripSplitButton.cs
- WorkerRequest.cs
- TogglePatternIdentifiers.cs
- ButtonBaseAdapter.cs
- GlobalizationAssembly.cs
- IFlowDocumentViewer.cs
- MsmqIntegrationSecurityMode.cs
- Clause.cs
- EdmToObjectNamespaceMap.cs
- WebPartMenuStyle.cs
- EventRouteFactory.cs