Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / safelinkcollection.cs / 1305376 / safelinkcollection.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- QilReference.cs
- BrowserCapabilitiesFactory.cs
- ZoneButton.cs
- PtsContext.cs
- DataServiceException.cs
- UnauthorizedAccessException.cs
- ColumnResizeAdorner.cs
- CompositionCommandSet.cs
- ActivationServices.cs
- EmptyStringExpandableObjectConverter.cs
- BoundsDrawingContextWalker.cs
- SrgsRule.cs
- CircleHotSpot.cs
- ObjectListGeneralPage.cs
- JsonFormatWriterGenerator.cs
- ToolStripStatusLabel.cs
- lengthconverter.cs
- Utils.cs
- ConfigXmlAttribute.cs
- XhtmlBasicListAdapter.cs
- ArraySortHelper.cs
- PersistenceContext.cs
- RuleSettings.cs
- StylusOverProperty.cs
- TextElementEnumerator.cs
- DataRowCollection.cs
- SynchronizedInputPattern.cs
- LambdaCompiler.Expressions.cs
- validation.cs
- CustomErrorsSection.cs
- RoleBoolean.cs
- CompilerGlobalScopeAttribute.cs
- ObjectSpanRewriter.cs
- Transform3DGroup.cs
- DrawingContextWalker.cs
- SecurityTokenException.cs
- XhtmlBasicValidatorAdapter.cs
- DateTimeConverter.cs
- RegexStringValidator.cs
- HttpCapabilitiesBase.cs
- ReflectionHelper.cs
- DocumentGridPage.cs
- WeakRefEnumerator.cs
- RtType.cs
- _ScatterGatherBuffers.cs
- HitTestWithPointDrawingContextWalker.cs
- ImageCodecInfo.cs
- MediaTimeline.cs
- SqlCacheDependencyDatabase.cs
- xamlnodes.cs
- VariableQuery.cs
- HealthMonitoringSection.cs
- ContextInformation.cs
- DigitalSignature.cs
- EditorAttributeInfo.cs
- InternalTypeHelper.cs
- EditorPart.cs
- SQLInt32.cs
- WebPartTransformerAttribute.cs
- Compiler.cs
- AutomationIdentifierGuids.cs
- CompensateDesigner.cs
- WorkflowWebService.cs
- DateTimeConstantAttribute.cs
- ControlBuilder.cs
- ServiceNameElementCollection.cs
- AnyReturnReader.cs
- ProviderSettingsCollection.cs
- InternalControlCollection.cs
- ExtendedTransformFactory.cs
- WebMessageBodyStyleHelper.cs
- COM2Properties.cs
- UniqueEventHelper.cs
- XmlSchemaValidator.cs
- DataGridViewRowStateChangedEventArgs.cs
- EdgeProfileValidation.cs
- CapabilitiesUse.cs
- WeakReferenceList.cs
- RunInstallerAttribute.cs
- CryptoStream.cs
- BamlRecordReader.cs
- PolyBezierSegmentFigureLogic.cs
- GraphicsContainer.cs
- DataColumnMapping.cs
- BuildProviderUtils.cs
- ProfessionalColorTable.cs
- Quaternion.cs
- ServiceBusyException.cs
- LinqDataSourceDeleteEventArgs.cs
- StringFunctions.cs
- BitVec.cs
- UrlMappingsSection.cs
- EntityTypeBase.cs
- BindingSource.cs
- MediaContextNotificationWindow.cs
- LogSwitch.cs
- Collection.cs
- TiffBitmapDecoder.cs
- MiniParameterInfo.cs
- _WebProxyDataBuilder.cs