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
- DriveInfo.cs
- AliasExpr.cs
- WebPartsPersonalization.cs
- AlphabetConverter.cs
- MenuCommandsChangedEventArgs.cs
- WebScriptMetadataMessageEncoderFactory.cs
- SystemUdpStatistics.cs
- EventBuilder.cs
- ControlType.cs
- MsmqMessageProperty.cs
- TextDecorations.cs
- EntityKeyElement.cs
- QilXmlWriter.cs
- EmbeddedMailObjectsCollection.cs
- XsltArgumentList.cs
- EntityTemplateUserControl.cs
- ItemContainerGenerator.cs
- TextElement.cs
- MetabaseReader.cs
- TopClause.cs
- PenCursorManager.cs
- SimpleRecyclingCache.cs
- XmlKeywords.cs
- TypedReference.cs
- MessageQueueKey.cs
- ControlAdapter.cs
- ToolStripItemCollection.cs
- IconHelper.cs
- SAPICategories.cs
- IdentityManager.cs
- UrlRoutingModule.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlSchemaObjectTable.cs
- IntegerValidatorAttribute.cs
- DataError.cs
- StorageSetMapping.cs
- XpsSerializerFactory.cs
- hwndwrapper.cs
- TdsParserStaticMethods.cs
- DependencyObjectProvider.cs
- PrimitiveCodeDomSerializer.cs
- DnsPermission.cs
- VectorKeyFrameCollection.cs
- PrinterUnitConvert.cs
- DetailsViewPagerRow.cs
- XsltFunctions.cs
- HostingEnvironmentException.cs
- KnownColorTable.cs
- SizeF.cs
- BitmapEffectGroup.cs
- BaseCodeDomTreeGenerator.cs
- cookiecollection.cs
- StateRuntime.cs
- DelayedRegex.cs
- BitmapDecoder.cs
- DataRowView.cs
- LinkLabel.cs
- ColumnCollection.cs
- QueryStatement.cs
- X509Certificate2.cs
- LocalizableAttribute.cs
- ApplicationManager.cs
- FirstMatchCodeGroup.cs
- PasswordRecovery.cs
- MimeMapping.cs
- _TLSstream.cs
- UIntPtr.cs
- DesignerTransaction.cs
- SignalGate.cs
- ScrollPatternIdentifiers.cs
- RepeaterCommandEventArgs.cs
- followingquery.cs
- GridViewAutoFormat.cs
- InlineCollection.cs
- CodeDomDecompiler.cs
- DialogResultConverter.cs
- XmlDeclaration.cs
- OdbcConnectionString.cs
- GeneralTransform3D.cs
- TextLine.cs
- DictionaryManager.cs
- XmlNodeList.cs
- HtmlToClrEventProxy.cs
- ProjectedSlot.cs
- GatewayIPAddressInformationCollection.cs
- ToolStripContentPanel.cs
- PerformanceCounterPermissionEntryCollection.cs
- Label.cs
- SamlSerializer.cs
- Rotation3D.cs
- InvalidWMPVersionException.cs
- WhileDesigner.cs
- CapacityStreamGeometryContext.cs
- FileClassifier.cs
- TraceHandler.cs
- Mappings.cs
- Executor.cs
- Stroke.cs
- BookmarkScopeHandle.cs
- SamlConditions.cs