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
- SynchronizedInputPattern.cs
- PolicyLevel.cs
- NameValueConfigurationElement.cs
- GatewayIPAddressInformationCollection.cs
- PenLineJoinValidation.cs
- PathNode.cs
- WebPartMinimizeVerb.cs
- LinqDataSourceHelper.cs
- CustomCategoryAttribute.cs
- MemberAssignment.cs
- EdmScalarPropertyAttribute.cs
- DependencyObjectType.cs
- Decorator.cs
- MILUtilities.cs
- TextSelectionHighlightLayer.cs
- SocketCache.cs
- FrameworkElementFactory.cs
- DropSourceBehavior.cs
- QueuePathEditor.cs
- SwitchExpression.cs
- BackgroundFormatInfo.cs
- TableAdapterManagerMethodGenerator.cs
- WebReferenceOptions.cs
- SplineKeyFrames.cs
- ItemsPresenter.cs
- RawStylusSystemGestureInputReport.cs
- CompModSwitches.cs
- RuleSettingsCollection.cs
- ActivationArguments.cs
- ZipIOLocalFileBlock.cs
- Keyboard.cs
- ReachPrintTicketSerializerAsync.cs
- CqlQuery.cs
- ConfigurationPermission.cs
- TextServicesCompartmentContext.cs
- CanonicalFontFamilyReference.cs
- NewItemsContextMenuStrip.cs
- XmlStringTable.cs
- TreeViewDesigner.cs
- ObjectContext.cs
- SubMenuStyleCollectionEditor.cs
- XPathDocument.cs
- AssemblyHash.cs
- RootBrowserWindow.cs
- SecurityChannel.cs
- RTLAwareMessageBox.cs
- SimplePropertyEntry.cs
- NativeMethods.cs
- SectionXmlInfo.cs
- IgnoreSectionHandler.cs
- AnimationTimeline.cs
- _AutoWebProxyScriptEngine.cs
- SolidBrush.cs
- MULTI_QI.cs
- NullableFloatMinMaxAggregationOperator.cs
- ToolStripDropDownButton.cs
- BulletedListEventArgs.cs
- TreeNodeBindingDepthConverter.cs
- EventHandlers.cs
- Stackframe.cs
- SpellerHighlightLayer.cs
- ArgumentElement.cs
- SchemaManager.cs
- ReadWriteObjectLock.cs
- XmlRawWriterWrapper.cs
- AddressHeaderCollection.cs
- InputLanguageEventArgs.cs
- PointLightBase.cs
- PackageRelationship.cs
- CheckPair.cs
- RelatedEnd.cs
- ActivityStateRecord.cs
- SingleBodyParameterMessageFormatter.cs
- PreviousTrackingServiceAttribute.cs
- QuotedStringFormatReader.cs
- IImplicitResourceProvider.cs
- ToolStripItemRenderEventArgs.cs
- WorkflowInstanceContextProvider.cs
- ProtocolsConfiguration.cs
- PrinterUnitConvert.cs
- WorkflowServiceOperationListItem.cs
- AutomationElementIdentifiers.cs
- TransactionManager.cs
- SqlStream.cs
- TableChangeProcessor.cs
- ExceptionHelpers.cs
- ZoomPercentageConverter.cs
- NamedPipeTransportManager.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BulletChrome.cs
- FtpCachePolicyElement.cs
- X509SecurityTokenProvider.cs
- RegexRunner.cs
- CodeCatchClauseCollection.cs
- CustomAttributeFormatException.cs
- UserPreferenceChangingEventArgs.cs
- ConditionedDesigner.cs
- VolatileEnlistmentState.cs
- DataGridViewControlCollection.cs
- TransportOutputChannel.cs