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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HyperLink.cs
- MemberPath.cs
- EmissiveMaterial.cs
- IsolatedStorage.cs
- VirtualPathUtility.cs
- ValueUnavailableException.cs
- XmlSchemaExporter.cs
- ChannelServices.cs
- UpdatePanel.cs
- CellRelation.cs
- BezierSegment.cs
- ToolStripItemCollection.cs
- TranslateTransform.cs
- FtpCachePolicyElement.cs
- SecurityPolicySection.cs
- GridViewPageEventArgs.cs
- JsonCollectionDataContract.cs
- FileIOPermission.cs
- Border.cs
- TextServicesPropertyRanges.cs
- DecoderBestFitFallback.cs
- InvokeCompletedEventArgs.cs
- FileNotFoundException.cs
- Location.cs
- DynamicMethod.cs
- Win32.cs
- XmlSerializerNamespaces.cs
- DocumentSchemaValidator.cs
- SettingsPropertyWrongTypeException.cs
- OrthographicCamera.cs
- AstTree.cs
- Main.cs
- StringSorter.cs
- ApplicationInfo.cs
- AudioStateChangedEventArgs.cs
- ProtocolsConfigurationHandler.cs
- TypeDefinition.cs
- HttpListenerRequestUriBuilder.cs
- DbMetaDataColumnNames.cs
- DataControlButton.cs
- CompareInfo.cs
- SafePEFileHandle.cs
- ErrorHandler.cs
- LogicalMethodInfo.cs
- Stack.cs
- FontTypeConverter.cs
- XmlSchemaSimpleTypeList.cs
- GridView.cs
- StructuralObject.cs
- EncryptedData.cs
- ReadOnlyCollectionBase.cs
- ActivityScheduledRecord.cs
- TriggerActionCollection.cs
- CollectionBuilder.cs
- DesignerAutoFormatCollection.cs
- OpenFileDialog.cs
- SafeUserTokenHandle.cs
- MergablePropertyAttribute.cs
- TargetControlTypeCache.cs
- SafeBuffer.cs
- UnionCodeGroup.cs
- WebResponse.cs
- BindingSource.cs
- ListBase.cs
- Select.cs
- DataKeyPropertyAttribute.cs
- BinaryOperationBinder.cs
- HttpHostedTransportConfiguration.cs
- OracleRowUpdatingEventArgs.cs
- KeyValueInternalCollection.cs
- WaitHandleCannotBeOpenedException.cs
- ClientSettingsProvider.cs
- DoWorkEventArgs.cs
- ErrorReporting.cs
- ProfileInfo.cs
- EndpointInfoCollection.cs
- ErrorBehavior.cs
- SelectQueryOperator.cs
- ZipIOLocalFileHeader.cs
- webeventbuffer.cs
- ConnectionPoolManager.cs
- cookieexception.cs
- SafeNativeMethodsCLR.cs
- ServicePointManagerElement.cs
- EntityDataSourceWizardForm.cs
- XmlDigitalSignatureProcessor.cs
- ObjectDataSourceDisposingEventArgs.cs
- AttributeCollection.cs
- ComplexPropertyEntry.cs
- UdpDiscoveryMessageFilter.cs
- ParagraphVisual.cs
- SafePEFileHandle.cs
- RegexMatchCollection.cs
- _ShellExpression.cs
- BridgeDataRecord.cs
- RealProxy.cs
- WindowsFormsLinkLabel.cs
- HttpCachePolicy.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TimelineGroup.cs