Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ApplicationServicesHostFactory.cs
- DataGridViewEditingControlShowingEventArgs.cs
- XsdDuration.cs
- AudioStateChangedEventArgs.cs
- JoinCqlBlock.cs
- CreateUserWizard.cs
- _Semaphore.cs
- TextModifierScope.cs
- FactoryMaker.cs
- ThreadExceptionDialog.cs
- DefaultValueAttribute.cs
- PasswordDeriveBytes.cs
- NativeMethods.cs
- StackSpiller.cs
- ContainerVisual.cs
- StatusBarPanel.cs
- ProcessInfo.cs
- DictionaryContent.cs
- RemotingConfiguration.cs
- Header.cs
- CompilationUtil.cs
- ToolboxComponentsCreatedEventArgs.cs
- OptionalMessageQuery.cs
- AdRotator.cs
- TimerElapsedEvenArgs.cs
- BuildProviderUtils.cs
- FormatConvertedBitmap.cs
- FontNamesConverter.cs
- Atom10ItemFormatter.cs
- ClientRuntimeConfig.cs
- CompositeClientFormatter.cs
- MDIWindowDialog.cs
- ExpressionList.cs
- TreeNodeMouseHoverEvent.cs
- ProcessModuleCollection.cs
- ProgramPublisher.cs
- ResetableIterator.cs
- SystemMulticastIPAddressInformation.cs
- XmlMessageFormatter.cs
- DriveNotFoundException.cs
- SimpleMailWebEventProvider.cs
- Journal.cs
- safex509handles.cs
- PolyQuadraticBezierSegment.cs
- FrameAutomationPeer.cs
- EncodingInfo.cs
- XmlFormatExtensionAttribute.cs
- FieldValue.cs
- RowBinding.cs
- RequestCachePolicy.cs
- HandlerBase.cs
- XmlDataCollection.cs
- LiteralDesigner.cs
- AnonymousIdentificationModule.cs
- SQLDateTime.cs
- ToolBar.cs
- InstanceKeyView.cs
- RegionInfo.cs
- ellipse.cs
- RowToParametersTransformer.cs
- ToolStripRenderer.cs
- DataGridHelper.cs
- LinearGradientBrush.cs
- CaretElement.cs
- ToolStripDropTargetManager.cs
- PreProcessInputEventArgs.cs
- TextParagraphCache.cs
- GradientPanel.cs
- TeredoHelper.cs
- CheckBoxStandardAdapter.cs
- ReadOnlyDataSource.cs
- WindowExtensionMethods.cs
- GlobalEventManager.cs
- EntitySqlQueryState.cs
- Site.cs
- WorkflowMarkupSerializationException.cs
- DriveNotFoundException.cs
- EUCJPEncoding.cs
- XsdBuilder.cs
- WindowsSecurityToken.cs
- PropertyKey.cs
- XmlToDatasetMap.cs
- EncryptedPackage.cs
- KerberosReceiverSecurityToken.cs
- SizeAnimationClockResource.cs
- TemplateColumn.cs
- Rfc2898DeriveBytes.cs
- BinaryObjectWriter.cs
- RegisteredDisposeScript.cs
- OdbcConnectionFactory.cs
- MsmqInputSessionChannel.cs
- HtmlHead.cs
- UnmanagedHandle.cs
- LineGeometry.cs
- DesignTimeDataBinding.cs
- HScrollProperties.cs
- SelectionPattern.cs
- ProviderUtil.cs
- ParseNumbers.cs
- OdbcParameterCollection.cs