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
- FormsAuthenticationEventArgs.cs
- OleDragDropHandler.cs
- DataControlFieldHeaderCell.cs
- UdpConstants.cs
- WpfWebRequestHelper.cs
- DebugView.cs
- UnsafeNativeMethods.cs
- HybridDictionary.cs
- PageEventArgs.cs
- CachedPathData.cs
- MenuScrollingVisibilityConverter.cs
- RsaKeyIdentifierClause.cs
- TreeViewEvent.cs
- CompiledQueryCacheEntry.cs
- RegexWorker.cs
- AndCondition.cs
- WindowsListViewGroupHelper.cs
- TdsParserHelperClasses.cs
- OdbcHandle.cs
- Funcletizer.cs
- FontSource.cs
- QuaternionAnimation.cs
- Propagator.Evaluator.cs
- JsonFormatWriterGenerator.cs
- WebPartVerbCollection.cs
- ArrangedElementCollection.cs
- MemberPath.cs
- ZoneLinkButton.cs
- CodeVariableDeclarationStatement.cs
- StringStorage.cs
- DateTimeFormatInfo.cs
- RelatedCurrencyManager.cs
- AuthenticationManager.cs
- ViewGenerator.cs
- ApplicationManager.cs
- ExtendedPropertyDescriptor.cs
- SoapMessage.cs
- LogStream.cs
- BindingUtils.cs
- TextSpan.cs
- ContainerParagraph.cs
- altserialization.cs
- validationstate.cs
- WindowsScrollBarBits.cs
- ControlBuilder.cs
- TemplateBaseAction.cs
- PropertyChangedEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- TdsParameterSetter.cs
- DynamicPropertyHolder.cs
- PlanCompiler.cs
- BasicExpandProvider.cs
- ListViewTableCell.cs
- Int16AnimationBase.cs
- OracleConnectionString.cs
- SoapDocumentMethodAttribute.cs
- EpmContentDeSerializer.cs
- ControlParameter.cs
- EmptyReadOnlyDictionaryInternal.cs
- ThousandthOfEmRealPoints.cs
- CopyOnWriteList.cs
- TimelineCollection.cs
- HttpStreamMessage.cs
- RectangleHotSpot.cs
- CodeAttributeDeclarationCollection.cs
- CodeAssignStatement.cs
- ValuePattern.cs
- ComponentEditorPage.cs
- PrivilegeNotHeldException.cs
- UpDownBaseDesigner.cs
- SqlDataSourceFilteringEventArgs.cs
- XmlSchemaValidator.cs
- PageTrueTypeFont.cs
- DataGridViewRowEventArgs.cs
- DesignerAttributeInfo.cs
- PageEventArgs.cs
- MessageDecoder.cs
- ContextMenu.cs
- TextParagraphView.cs
- AccessibleObject.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ItemChangedEventArgs.cs
- VisualProxy.cs
- TailPinnedEventArgs.cs
- SequentialOutput.cs
- DynamicRendererThreadManager.cs
- And.cs
- DataServiceQueryException.cs
- ContextMenu.cs
- EntityDesignerDataSourceView.cs
- BindingValueChangedEventArgs.cs
- EventItfInfo.cs
- ListViewUpdatedEventArgs.cs
- prompt.cs
- DecimalFormatter.cs
- XmlAnyElementAttribute.cs
- WebPartHelpVerb.cs
- UserControlCodeDomTreeGenerator.cs
- baseaxisquery.cs
- ScriptResourceAttribute.cs