Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TextTreeTextElementNode.cs
- CacheOutputQuery.cs
- DataColumn.cs
- MarshalDirectiveException.cs
- GACMembershipCondition.cs
- UrlMappingCollection.cs
- CryptoProvider.cs
- ContextMenuStripGroupCollection.cs
- MemberHolder.cs
- PeerContact.cs
- PointCollection.cs
- _ConnectOverlappedAsyncResult.cs
- SignatureDescription.cs
- NativeMethods.cs
- DescendentsWalker.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- IOThreadTimer.cs
- BindingManagerDataErrorEventArgs.cs
- IndentedTextWriter.cs
- TerminatorSinks.cs
- GridViewHeaderRowPresenter.cs
- BooleanConverter.cs
- KeyValueConfigurationElement.cs
- XPathParser.cs
- ACE.cs
- CallbackValidator.cs
- BitmapEffectRenderDataResource.cs
- PresentationSource.cs
- SingleAnimation.cs
- Stream.cs
- ExtenderProvidedPropertyAttribute.cs
- WindowsTokenRoleProvider.cs
- XNameConverter.cs
- XmlAnyAttributeAttribute.cs
- LoadedEvent.cs
- WebBrowser.cs
- Block.cs
- PropertyToken.cs
- MultilineStringEditor.cs
- InvokeBinder.cs
- MessageSmuggler.cs
- GridLengthConverter.cs
- Point3DCollection.cs
- SQLInt16.cs
- DocumentSchemaValidator.cs
- GroupBox.cs
- EntitySqlQueryState.cs
- ServicePerformanceCounters.cs
- ScriptingRoleServiceSection.cs
- DataSourceExpression.cs
- PrimitiveCodeDomSerializer.cs
- TimeoutValidationAttribute.cs
- securestring.cs
- UdpChannelListener.cs
- EmptyArray.cs
- UnmanagedHandle.cs
- EntityProxyTypeInfo.cs
- DataGridViewRowConverter.cs
- EntityClientCacheKey.cs
- GCHandleCookieTable.cs
- WebBaseEventKeyComparer.cs
- DataBindingValueUIHandler.cs
- HTTPNotFoundHandler.cs
- LinearKeyFrames.cs
- MouseEvent.cs
- DeclaredTypeValidator.cs
- XamlWrapperReaders.cs
- ChangeInterceptorAttribute.cs
- HandleCollector.cs
- AffineTransform3D.cs
- HatchBrush.cs
- CompressionTransform.cs
- DataGridClipboardHelper.cs
- ConvertTextFrag.cs
- HtmlEmptyTagControlBuilder.cs
- TypeUsageBuilder.cs
- WindowsImpersonationContext.cs
- ManipulationPivot.cs
- NullableIntAverageAggregationOperator.cs
- TraversalRequest.cs
- QilStrConcat.cs
- StructuredTypeInfo.cs
- NetworkInformationPermission.cs
- ObjectIDGenerator.cs
- ComplexPropertyEntry.cs
- TableDetailsCollection.cs
- PreProcessInputEventArgs.cs
- LifetimeMonitor.cs
- DataListAutoFormat.cs
- SharedDp.cs
- ClusterUtils.cs
- elementinformation.cs
- Int16Converter.cs
- SemaphoreFullException.cs
- AutomationElement.cs
- PieceDirectory.cs
- Tile.cs
- CfgRule.cs
- WsdlBuildProvider.cs
- Decimal.cs