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 / AssociationEndMember.cs / 1 / AssociationEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents a end of a Association Type /// public sealed class AssociationEndMember : RelationshipEndMember { #region Constructors ////// Initializes a new instance of AssociationEndMember /// /// name of the association end member /// Ref type that this end refers to /// multiplicity of the end internal AssociationEndMember(string name, RefType endRefType, RelationshipMultiplicity multiplicity) : base(name, endRefType, multiplicity) { } #endregion ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationEndMember; } } private object _getRelatedEndMethod = null; ///cached dynamic method to set a CLR property value on a CLR instance internal object GetRelatedEnd { get { return _getRelatedEndMethod; } set { System.Diagnostics.Debug.Assert(null != value, "clearing GetRelatedEndMethod"); // It doesn't matter which delegate wins, but only one should be jitted Interlocked.CompareExchange(ref _getRelatedEndMethod, value, null); } } } } // 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.Text; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents a end of a Association Type /// public sealed class AssociationEndMember : RelationshipEndMember { #region Constructors ////// Initializes a new instance of AssociationEndMember /// /// name of the association end member /// Ref type that this end refers to /// multiplicity of the end internal AssociationEndMember(string name, RefType endRefType, RelationshipMultiplicity multiplicity) : base(name, endRefType, multiplicity) { } #endregion ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.AssociationEndMember; } } private object _getRelatedEndMethod = null; ///cached dynamic method to set a CLR property value on a CLR instance internal object GetRelatedEnd { get { return _getRelatedEndMethod; } set { System.Diagnostics.Debug.Assert(null != value, "clearing GetRelatedEndMethod"); // It doesn't matter which delegate wins, but only one should be jitted Interlocked.CompareExchange(ref _getRelatedEndMethod, value, null); } } } } // 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
- ExpressionNormalizer.cs
- Reference.cs
- _ConnectionGroup.cs
- CatalogPart.cs
- smtppermission.cs
- CultureTableRecord.cs
- SharedPersonalizationStateInfo.cs
- XmlNodeChangedEventArgs.cs
- SqlProvider.cs
- AdornerHitTestResult.cs
- BitmapSourceSafeMILHandle.cs
- SecurityElement.cs
- precedingsibling.cs
- AppDomainAttributes.cs
- BridgeDataRecord.cs
- BaseDataBoundControl.cs
- ToolStripPanelSelectionGlyph.cs
- DataGridRow.cs
- CollectionBuilder.cs
- Border.cs
- XPathSelfQuery.cs
- Viewport3DAutomationPeer.cs
- MDIWindowDialog.cs
- BoundField.cs
- FieldToken.cs
- CalendarDesigner.cs
- TextComposition.cs
- CurrentChangedEventManager.cs
- ListParaClient.cs
- OdbcRowUpdatingEvent.cs
- WinCategoryAttribute.cs
- Boolean.cs
- SafeRightsManagementEnvironmentHandle.cs
- RuntimeEnvironment.cs
- WebPartVerbCollection.cs
- PerfCounters.cs
- ColumnMapCopier.cs
- CollectionExtensions.cs
- RowBinding.cs
- ExpandSegment.cs
- BitVector32.cs
- PerfProviderCollection.cs
- CryptoApi.cs
- ListItemCollection.cs
- TopClause.cs
- XPathSingletonIterator.cs
- ProxyHwnd.cs
- TextChange.cs
- QuestionEventArgs.cs
- TextServicesCompartmentContext.cs
- InputChannelAcceptor.cs
- WsdlInspector.cs
- ReachUIElementCollectionSerializer.cs
- TransformationRules.cs
- DataSourceCache.cs
- TableCell.cs
- StorageModelBuildProvider.cs
- FlowLayoutPanel.cs
- DbMetaDataFactory.cs
- EntityDataSourceUtil.cs
- ConsoleEntryPoint.cs
- AgileSafeNativeMemoryHandle.cs
- SoapServerProtocol.cs
- ServiceBehaviorElement.cs
- ComponentSerializationService.cs
- ToolStripSystemRenderer.cs
- XhtmlStyleClass.cs
- HtmlInputControl.cs
- HitTestDrawingContextWalker.cs
- SessionStateContainer.cs
- WinInet.cs
- SQLBinaryStorage.cs
- EditorResources.cs
- FontFaceLayoutInfo.cs
- StylusPointCollection.cs
- TextRenderer.cs
- FloaterParagraph.cs
- glyphs.cs
- UnsafeNativeMethods.cs
- AutoCompleteStringCollection.cs
- UnicodeEncoding.cs
- CryptoHandle.cs
- HMACSHA512.cs
- DBDataPermission.cs
- InheritanceAttribute.cs
- StringStorage.cs
- ThreadExceptionDialog.cs
- ValueTable.cs
- NullPackagingPolicy.cs
- SoapHeaderException.cs
- ContextQuery.cs
- CompilerGeneratedAttribute.cs
- XmlAttributeProperties.cs
- SrgsElementList.cs
- UserPreferenceChangedEventArgs.cs
- CreateUserErrorEventArgs.cs
- DataSourceExpressionCollection.cs
- QilGenerator.cs
- Color.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs