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
- TemplateControlCodeDomTreeGenerator.cs
- Color.cs
- DesignerMetadata.cs
- DataGridItemAutomationPeer.cs
- CompiledQueryCacheKey.cs
- AnyReturnReader.cs
- MailDefinitionBodyFileNameEditor.cs
- LogicalExpressionEditor.cs
- ComboBoxRenderer.cs
- AppDomainFactory.cs
- DbParameterCollection.cs
- WebPartTransformerAttribute.cs
- XpsFilter.cs
- InputReferenceExpression.cs
- Win32KeyboardDevice.cs
- ListViewPagedDataSource.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ViewManagerAttribute.cs
- TextUtf8RawTextWriter.cs
- MetadataItemEmitter.cs
- XmlBaseReader.cs
- TypeConverterHelper.cs
- Processor.cs
- HttpWebResponse.cs
- TriggerBase.cs
- ServiceParser.cs
- TextShapeableCharacters.cs
- BooleanExpr.cs
- CancellationScope.cs
- PackUriHelper.cs
- Win32Native.cs
- Int16AnimationBase.cs
- PageThemeParser.cs
- FieldDescriptor.cs
- Help.cs
- PrimitiveSchema.cs
- CursorInteropHelper.cs
- TrackingStringDictionary.cs
- ColorTransform.cs
- EntityExpressionVisitor.cs
- WebMessageEncoderFactory.cs
- Random.cs
- HTMLTagNameToTypeMapper.cs
- ConfigXmlWhitespace.cs
- LinkedDataMemberFieldEditor.cs
- GC.cs
- Grammar.cs
- XmlName.cs
- DataGridViewCellFormattingEventArgs.cs
- Delay.cs
- AbandonedMutexException.cs
- SpeakInfo.cs
- CommonRemoteMemoryBlock.cs
- WorkflowMarkupElementEventArgs.cs
- SessionEndingEventArgs.cs
- ClientTarget.cs
- ModelFactory.cs
- grammarelement.cs
- DecimalConstantAttribute.cs
- Attributes.cs
- _HeaderInfoTable.cs
- DataServiceRequestArgs.cs
- XmlElementElementCollection.cs
- WebPartCatalogCloseVerb.cs
- GridSplitter.cs
- Rotation3D.cs
- SelectionHighlightInfo.cs
- Int32Storage.cs
- MaskDescriptors.cs
- EntityClientCacheEntry.cs
- CorePropertiesFilter.cs
- MimeTypeMapper.cs
- DictionaryGlobals.cs
- NegatedCellConstant.cs
- GetReadStreamResult.cs
- BulletedListEventArgs.cs
- ListMarkerLine.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- _HTTPDateParse.cs
- DateTimeFormatInfoScanner.cs
- Padding.cs
- StrongNamePublicKeyBlob.cs
- OutputWindow.cs
- IssuanceLicense.cs
- DbProviderConfigurationHandler.cs
- SQLUtility.cs
- ZipIOCentralDirectoryBlock.cs
- Utils.cs
- OutOfMemoryException.cs
- WriteStateInfoBase.cs
- ExpressionEditor.cs
- DataGridViewToolTip.cs
- PackWebResponse.cs
- ToolStripDropDownButton.cs
- Relationship.cs
- ApplicationGesture.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- WorkflowInstanceSuspendedRecord.cs
- SiteOfOriginPart.cs
- TargetException.cs