Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / AssociationEndMember.cs / 1305376 / AssociationEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Data.Objects.DataClasses; 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 Func_getRelatedEndMethod = null; /// cached dynamic method to set a CLR property value on a CLR instance internal FuncGetRelatedEnd { 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Data.Objects.DataClasses; 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 Func_getRelatedEndMethod = null; /// cached dynamic method to set a CLR property value on a CLR instance internal FuncGetRelatedEnd { 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
- ProxyManager.cs
- TextElementEnumerator.cs
- XmlSerializerFactory.cs
- ConnectionPointCookie.cs
- ButtonRenderer.cs
- GPPOINTF.cs
- WebResourceAttribute.cs
- ScriptResourceMapping.cs
- SQLConvert.cs
- Rotation3DAnimationBase.cs
- DataGridHeaderBorder.cs
- WebScriptServiceHost.cs
- UpWmlMobileTextWriter.cs
- SmiXetterAccessMap.cs
- RenamedEventArgs.cs
- FormatSettings.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- TransactedReceiveScope.cs
- MultiBindingExpression.cs
- DbBuffer.cs
- SecurityTokenInclusionMode.cs
- ClientUtils.cs
- HttpRequestWrapper.cs
- ListViewItem.cs
- UserMapPath.cs
- OracleRowUpdatedEventArgs.cs
- TypeBrowserDialog.cs
- SystemResources.cs
- LayoutTable.cs
- FileSystemWatcher.cs
- Constraint.cs
- AssemblyBuilderData.cs
- OleDbParameterCollection.cs
- RSAPKCS1SignatureFormatter.cs
- CounterSample.cs
- GeometryConverter.cs
- XmlChildNodes.cs
- DateRangeEvent.cs
- LinkGrep.cs
- RectAnimationUsingKeyFrames.cs
- DateBoldEvent.cs
- RightsManagementUser.cs
- ModelItemDictionaryImpl.cs
- GridViewColumnCollectionChangedEventArgs.cs
- EnvelopedPkcs7.cs
- TextHidden.cs
- ShapeTypeface.cs
- DataGrid.cs
- TableRow.cs
- PackageRelationshipSelector.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- DispatcherHookEventArgs.cs
- OrderPreservingPipeliningMergeHelper.cs
- XPathDocumentIterator.cs
- TabControlEvent.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ErrorTableItemStyle.cs
- ConfigsHelper.cs
- PermissionToken.cs
- DbConnectionPoolCounters.cs
- CryptoProvider.cs
- Win32MouseDevice.cs
- ObjectDataSourceView.cs
- FamilyTypefaceCollection.cs
- ConfigurationManager.cs
- followingquery.cs
- cookie.cs
- CachedTypeface.cs
- ServiceDescription.cs
- DataRecordInternal.cs
- ProtocolsConfiguration.cs
- MeshGeometry3D.cs
- SaveFileDialog.cs
- QuotedPrintableStream.cs
- XmlNodeReader.cs
- FontClient.cs
- Image.cs
- UIElementHelper.cs
- ResourceManager.cs
- CheckoutException.cs
- InternalDispatchObject.cs
- BulletedList.cs
- SystemNetworkInterface.cs
- StrokeNodeOperations2.cs
- TimeStampChecker.cs
- COM2ColorConverter.cs
- ParameterRefs.cs
- SoapTypeAttribute.cs
- SelectionUIHandler.cs
- RadioButton.cs
- Rect3D.cs
- AsymmetricSecurityProtocolFactory.cs
- HttpCacheVaryByContentEncodings.cs
- AuthenticationServiceManager.cs
- FilterQuery.cs
- GPStream.cs
- DesignTimeType.cs
- AutomationProperty.cs
- CellRelation.cs
- Parser.cs