Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TypeElement.cs
- SafeMILHandle.cs
- FieldNameLookup.cs
- EditorPartCollection.cs
- _NegotiateClient.cs
- MSAAWinEventWrap.cs
- StylusPlugInCollection.cs
- DataServiceOperationContext.cs
- DeobfuscatingStream.cs
- RoleGroup.cs
- LineProperties.cs
- NavigationProgressEventArgs.cs
- InstanceDescriptor.cs
- StateWorkerRequest.cs
- CodeTypeMember.cs
- DocumentReference.cs
- Parameter.cs
- Geometry.cs
- FactoryRecord.cs
- XmlAttribute.cs
- PropertyDescriptorGridEntry.cs
- EmptyEnumerator.cs
- DataGridViewCellValidatingEventArgs.cs
- HwndTarget.cs
- ClientSponsor.cs
- HtmlTable.cs
- TreeViewHitTestInfo.cs
- EntitySqlQueryCacheEntry.cs
- CharEnumerator.cs
- HttpCacheParams.cs
- WindowsListBox.cs
- ContextQuery.cs
- COM2IPerPropertyBrowsingHandler.cs
- ReflectionTypeLoadException.cs
- RowToParametersTransformer.cs
- DataContractSerializerOperationFormatter.cs
- TextRunTypographyProperties.cs
- Vector3DAnimationUsingKeyFrames.cs
- MenuItem.cs
- ExceptionTrace.cs
- ControlIdConverter.cs
- EventLogPermission.cs
- AssemblyAssociatedContentFileAttribute.cs
- ProtectedConfigurationSection.cs
- SmtpNtlmAuthenticationModule.cs
- ActiveXSerializer.cs
- SQLUtility.cs
- Metafile.cs
- CodeBlockBuilder.cs
- PopupRoot.cs
- WindowsSysHeader.cs
- ViewLoader.cs
- SoapHeaderAttribute.cs
- _BufferOffsetSize.cs
- RuntimeResourceSet.cs
- CollectionConverter.cs
- TemplateXamlTreeBuilder.cs
- HtmlEncodedRawTextWriter.cs
- ImpersonationContext.cs
- COMException.cs
- OperationInvokerBehavior.cs
- FontStretchConverter.cs
- CommandManager.cs
- ReceiveActivity.cs
- SessionStateSection.cs
- TypeToken.cs
- PropertyGroupDescription.cs
- Bezier.cs
- ValidationSummaryDesigner.cs
- DetailsViewModeEventArgs.cs
- DataService.cs
- WebControlAdapter.cs
- Filter.cs
- Application.cs
- TemplateBindingExpressionConverter.cs
- LinkedResourceCollection.cs
- compensatingcollection.cs
- ClassImporter.cs
- XmlEntityReference.cs
- DataGridAutomationPeer.cs
- MenuAutoFormat.cs
- AuthStoreRoleProvider.cs
- TokenBasedSetEnumerator.cs
- MaxMessageSizeStream.cs
- PolicyStatement.cs
- RelationshipEnd.cs
- SystemResources.cs
- SelectedCellsChangedEventArgs.cs
- versioninfo.cs
- NetCodeGroup.cs
- SortDescription.cs
- SqlNamer.cs
- OperationFormatStyle.cs
- CodeArgumentReferenceExpression.cs
- XmlnsCache.cs
- TypographyProperties.cs
- ConversionValidationRule.cs
- AttachInfo.cs
- ConfigXmlDocument.cs
- PeerCustomResolverSettings.cs