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
- MaxValueConverter.cs
- MimeMapping.cs
- RecordsAffectedEventArgs.cs
- ItemList.cs
- TablePattern.cs
- TraceHandler.cs
- RecordConverter.cs
- ConnectionsZone.cs
- TimeIntervalCollection.cs
- IgnoreSectionHandler.cs
- EmptyStringExpandableObjectConverter.cs
- SHA512CryptoServiceProvider.cs
- TextTreeFixupNode.cs
- InputLanguageSource.cs
- DateTimeFormat.cs
- SqlCacheDependencyDatabase.cs
- _DomainName.cs
- FixedSOMElement.cs
- prompt.cs
- TimeIntervalCollection.cs
- PageRouteHandler.cs
- SecurityContext.cs
- PathGeometry.cs
- ConstraintManager.cs
- DataServiceEntityAttribute.cs
- CodeAccessPermission.cs
- IIS7WorkerRequest.cs
- HScrollBar.cs
- FileUpload.cs
- contentDescriptor.cs
- RadioButtonList.cs
- CollectionDataContractAttribute.cs
- AnimationLayer.cs
- WebPageTraceListener.cs
- StreamBodyWriter.cs
- ServiceHttpHandlerFactory.cs
- RequestCacheValidator.cs
- ListViewPagedDataSource.cs
- CodeDOMUtility.cs
- DesignerAttributeInfo.cs
- Compiler.cs
- DbSourceCommand.cs
- InfoCardSchemas.cs
- RegexTree.cs
- Canvas.cs
- WebPartZoneBase.cs
- SettingsPropertyWrongTypeException.cs
- CallContext.cs
- ButtonBase.cs
- RuleSettingsCollection.cs
- GridViewColumnCollection.cs
- WebOperationContext.cs
- TypeConverter.cs
- SqlParameter.cs
- FormViewModeEventArgs.cs
- IndexedEnumerable.cs
- FullTrustAssemblyCollection.cs
- ReadOnlyAttribute.cs
- CodeIndexerExpression.cs
- ValueType.cs
- VirtualPathUtility.cs
- WebRequestModulesSection.cs
- ProxyHelper.cs
- PassportAuthenticationModule.cs
- formatter.cs
- DiagnosticsConfiguration.cs
- XmlSchemaAppInfo.cs
- MimeXmlImporter.cs
- AdapterDictionary.cs
- CompositeDataBoundControl.cs
- MultipleFilterMatchesException.cs
- IdentityManager.cs
- PageHandlerFactory.cs
- SqlCommandBuilder.cs
- SerializerProvider.cs
- ImmComposition.cs
- Number.cs
- HttpCachePolicyElement.cs
- _UncName.cs
- OleDbConnectionInternal.cs
- StateManagedCollection.cs
- ImageAttributes.cs
- TemplateComponentConnector.cs
- DefaultMemberAttribute.cs
- CalendarSelectionChangedEventArgs.cs
- DetailsView.cs
- WizardSideBarListControlItem.cs
- CodeExpressionStatement.cs
- WebBrowserSiteBase.cs
- StyleCollection.cs
- UiaCoreTypesApi.cs
- Positioning.cs
- TextElementCollection.cs
- CqlParser.cs
- ClassGenerator.cs
- XPathNavigator.cs
- QueueProcessor.cs
- ECDsa.cs
- EventDescriptor.cs
- AppSettings.cs