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
- RtfControls.cs
- EntityDataSourceWrapperCollection.cs
- Menu.cs
- Tokenizer.cs
- GridEntry.cs
- PrimitiveCodeDomSerializer.cs
- WorkItem.cs
- AttributeSetAction.cs
- CompiledRegexRunner.cs
- InvalidPipelineStoreException.cs
- PriorityChain.cs
- ChildrenQuery.cs
- StrongNameIdentityPermission.cs
- ToolStripProgressBar.cs
- XmlCompatibilityReader.cs
- AppDomainUnloadedException.cs
- ToolBarTray.cs
- CodeBinaryOperatorExpression.cs
- ResourceIDHelper.cs
- DurableServiceAttribute.cs
- TraceUtility.cs
- WebBrowserNavigatingEventHandler.cs
- DataContractSerializerMessageContractImporter.cs
- CodeLinePragma.cs
- _Connection.cs
- FontCacheLogic.cs
- OdbcConnectionPoolProviderInfo.cs
- XamlReaderHelper.cs
- AggregatePushdown.cs
- Item.cs
- TreeView.cs
- SourceFileBuildProvider.cs
- AddValidationError.cs
- QueryStringConverter.cs
- RangeContentEnumerator.cs
- DataRow.cs
- DictionaryBase.cs
- AttachedPropertyMethodSelector.cs
- __TransparentProxy.cs
- FieldBuilder.cs
- ReflectTypeDescriptionProvider.cs
- XPathChildIterator.cs
- PropertyIDSet.cs
- ToolStripItemTextRenderEventArgs.cs
- TablePatternIdentifiers.cs
- RegistryPermission.cs
- SwitchAttribute.cs
- ReverseInheritProperty.cs
- Comparer.cs
- CrossContextChannel.cs
- FileNotFoundException.cs
- XhtmlConformanceSection.cs
- XmlSchemaAppInfo.cs
- StringSource.cs
- Rfc2898DeriveBytes.cs
- StatusBarDesigner.cs
- StaticExtension.cs
- SqlDataReader.cs
- CombinedGeometry.cs
- Types.cs
- ColumnMapCopier.cs
- EntityContainerRelationshipSetEnd.cs
- BinaryKeyIdentifierClause.cs
- DbProviderSpecificTypePropertyAttribute.cs
- HttpCapabilitiesBase.cs
- ValidatingReaderNodeData.cs
- ComponentEvent.cs
- HMACSHA1.cs
- XamlInterfaces.cs
- SerializationObjectManager.cs
- Matrix3D.cs
- HwndTarget.cs
- AppDomainManager.cs
- XPathSingletonIterator.cs
- VScrollBar.cs
- DependencyPropertyChangedEventArgs.cs
- CommonDialog.cs
- LinkedDataMemberFieldEditor.cs
- keycontainerpermission.cs
- TextProviderWrapper.cs
- MappingSource.cs
- AssertFilter.cs
- IdentifierCollection.cs
- SQLByteStorage.cs
- PackagePartCollection.cs
- PolyBezierSegmentFigureLogic.cs
- ToolStripItemCollection.cs
- CopyNodeSetAction.cs
- FormatterServices.cs
- ReadOnlyAttribute.cs
- AnnotationHighlightLayer.cs
- StylusPointDescription.cs
- Point3DAnimation.cs
- HtmlElement.cs
- XmlName.cs
- MdiWindowListStrip.cs
- DynamicValueConverter.cs
- Helper.cs
- Repeater.cs
- DataRelationCollection.cs