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
- GregorianCalendarHelper.cs
- NamedPipeTransportSecurityElement.cs
- EndOfStreamException.cs
- XMLDiffLoader.cs
- ConvertEvent.cs
- DateTimeUtil.cs
- DataGridViewCellValidatingEventArgs.cs
- XsdBuildProvider.cs
- SequenceDesigner.cs
- _Events.cs
- GridItem.cs
- HTMLTagNameToTypeMapper.cs
- UnaryNode.cs
- DirectoryInfo.cs
- ToolStripDropDownDesigner.cs
- WindowsStatusBar.cs
- LoginUtil.cs
- AttributedMetaModel.cs
- DecoderExceptionFallback.cs
- FixedSOMFixedBlock.cs
- InkCanvasInnerCanvas.cs
- ConstructorArgumentAttribute.cs
- BaseTemplateBuildProvider.cs
- ModifierKeysConverter.cs
- StringFreezingAttribute.cs
- HttpInputStream.cs
- IntPtr.cs
- RecognizedAudio.cs
- StyleCollection.cs
- MetadataArtifactLoaderComposite.cs
- DockEditor.cs
- ToolBar.cs
- CompositeFontFamily.cs
- DrawToolTipEventArgs.cs
- HttpContext.cs
- IdnMapping.cs
- DesignerToolboxInfo.cs
- BitmapEffectRenderDataResource.cs
- SignatureHelper.cs
- WebMessageEncoderFactory.cs
- DeviceSpecificChoiceCollection.cs
- EncryptedKey.cs
- HTTPNotFoundHandler.cs
- DescendantOverDescendantQuery.cs
- DeflateEmulationStream.cs
- ZipArchive.cs
- FolderNameEditor.cs
- XamlFigureLengthSerializer.cs
- SelectionPattern.cs
- PixelFormat.cs
- updatecommandorderer.cs
- ElapsedEventArgs.cs
- HtmlControl.cs
- HtmlSelect.cs
- TemplateComponentConnector.cs
- ModuleElement.cs
- FixedSOMSemanticBox.cs
- Int64AnimationUsingKeyFrames.cs
- ProxyManager.cs
- DataControlLinkButton.cs
- EvidenceTypeDescriptor.cs
- TabPage.cs
- CurrentChangedEventManager.cs
- DisplayInformation.cs
- IsolatedStorageFileStream.cs
- ContextStaticAttribute.cs
- ToolStripSystemRenderer.cs
- ScriptControlDescriptor.cs
- EffectiveValueEntry.cs
- CodeMethodInvokeExpression.cs
- CompoundFileDeflateTransform.cs
- DbExpressionBuilder.cs
- ImageUrlEditor.cs
- ButtonAutomationPeer.cs
- MemberBinding.cs
- DockingAttribute.cs
- PhonemeConverter.cs
- Lease.cs
- TransactionInformation.cs
- ListDesigner.cs
- MeshGeometry3D.cs
- Visitors.cs
- TraceUtility.cs
- HostingEnvironmentSection.cs
- DynamicUpdateCommand.cs
- Label.cs
- ProxyGenerator.cs
- XmlDocumentSerializer.cs
- HiddenField.cs
- SimpleWebHandlerParser.cs
- XamlTemplateSerializer.cs
- DSACryptoServiceProvider.cs
- Peer.cs
- Image.cs
- DLinqColumnProvider.cs
- TreeViewAutomationPeer.cs
- MessageQueueEnumerator.cs
- _SecureChannel.cs
- WebControlAdapter.cs
- AsyncSerializedWorker.cs