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
- AnnotationHighlightLayer.cs
- CommonDialog.cs
- PersonalizationProviderCollection.cs
- WorkflowTransactionService.cs
- AtomServiceDocumentSerializer.cs
- XPathItem.cs
- EntityAdapter.cs
- StdValidatorsAndConverters.cs
- WebPartEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- IBuiltInEvidence.cs
- XmlUtil.cs
- PerformanceCounterPermission.cs
- TypeForwardedToAttribute.cs
- ResolvePPIDRequest.cs
- SafeReversePInvokeHandle.cs
- WebConfigurationManager.cs
- ItemChangedEventArgs.cs
- InputLanguage.cs
- SegmentInfo.cs
- BufferBuilder.cs
- AppDomainProtocolHandler.cs
- XmlSerializableWriter.cs
- CharEnumerator.cs
- ExpandoClass.cs
- QilLiteral.cs
- ValidationEventArgs.cs
- AdornerLayer.cs
- NegatedCellConstant.cs
- IntegerFacetDescriptionElement.cs
- TextContainerChangedEventArgs.cs
- UnionExpr.cs
- DoubleConverter.cs
- StreamMarshaler.cs
- KnownTypes.cs
- SqlUserDefinedAggregateAttribute.cs
- PhysicalOps.cs
- DoubleLink.cs
- ArgumentException.cs
- HScrollProperties.cs
- OleDbConnection.cs
- dataSvcMapFileLoader.cs
- Repeater.cs
- ApplicationSettingsBase.cs
- BitmapEncoder.cs
- DesignTimeType.cs
- CodeTypeOfExpression.cs
- NameValueSectionHandler.cs
- SqlStream.cs
- HostedTransportConfigurationManager.cs
- DataTemplateSelector.cs
- SvcMapFile.cs
- LoginCancelEventArgs.cs
- JsonClassDataContract.cs
- SqlDataRecord.cs
- DisplayInformation.cs
- FontInfo.cs
- CancelEventArgs.cs
- ToolStripContentPanel.cs
- SharedPerformanceCounter.cs
- SiteMapDataSource.cs
- HandlerMappingMemo.cs
- RegistrySecurity.cs
- RadioButton.cs
- EntityUtil.cs
- StackSpiller.Temps.cs
- Transform.cs
- XmlElementCollection.cs
- DbDataRecord.cs
- StateMachineSubscriptionManager.cs
- AbstractSvcMapFileLoader.cs
- EmptyStringExpandableObjectConverter.cs
- List.cs
- DbModificationCommandTree.cs
- CodeLinePragma.cs
- OleDbMetaDataFactory.cs
- OrderedDictionaryStateHelper.cs
- TypeNameConverter.cs
- UTF7Encoding.cs
- ActivityBuilderXamlWriter.cs
- VirtualizingStackPanel.cs
- ParameterReplacerVisitor.cs
- SymbolPair.cs
- CookieParameter.cs
- TableLayoutCellPaintEventArgs.cs
- DynamicRenderer.cs
- XmlSchemaAttributeGroup.cs
- ToolboxItemAttribute.cs
- StateDesigner.Layouts.cs
- RSAPKCS1SignatureFormatter.cs
- JpegBitmapDecoder.cs
- safelinkcollection.cs
- GACMembershipCondition.cs
- RadioButtonDesigner.cs
- SystemSounds.cs
- TypedElement.cs
- SafeRegistryHandle.cs
- DbFunctionCommandTree.cs
- EntityCommandCompilationException.cs
- Ops.cs