Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HostingEnvironmentException.cs
- ScrollPattern.cs
- querybuilder.cs
- TextTreeDeleteContentUndoUnit.cs
- EmptyControlCollection.cs
- ParameterRetriever.cs
- SafeFileHandle.cs
- ExtendedProperty.cs
- _StreamFramer.cs
- PointUtil.cs
- ObjectManager.cs
- MultiPageTextView.cs
- OdbcConnectionString.cs
- TextFormatterHost.cs
- MessageQueueKey.cs
- ClientUtils.cs
- FileDialog.cs
- BridgeDataReader.cs
- SocketException.cs
- XmlSchemaImporter.cs
- SchemaReference.cs
- AmbientLight.cs
- BitmapEffect.cs
- ErrorRuntimeConfig.cs
- WinFormsSecurity.cs
- DataGridViewCellCancelEventArgs.cs
- ExtensibleClassFactory.cs
- ScalarType.cs
- Int32KeyFrameCollection.cs
- SchemaConstraints.cs
- ConfigXmlComment.cs
- AuthenticationSection.cs
- ApplicationSecurityInfo.cs
- DropTarget.cs
- Wizard.cs
- DataException.cs
- StatusBar.cs
- AlternateViewCollection.cs
- CodeIdentifier.cs
- CAGDesigner.cs
- LocalizableAttribute.cs
- NativeMethodsCLR.cs
- AnnotationResourceChangedEventArgs.cs
- Atom10ItemFormatter.cs
- ParameterBuilder.cs
- CodeTypeReferenceCollection.cs
- Privilege.cs
- RadioButtonBaseAdapter.cs
- CoTaskMemSafeHandle.cs
- MatrixTransform3D.cs
- FlowDocumentScrollViewer.cs
- LongValidator.cs
- dataprotectionpermissionattribute.cs
- DataSourceProvider.cs
- XmlSerializationGeneratedCode.cs
- GifBitmapEncoder.cs
- ParserHooks.cs
- PeerContact.cs
- EncoderNLS.cs
- ExpressionPrefixAttribute.cs
- DataSourceControl.cs
- safesecurityhelperavalon.cs
- SocketAddress.cs
- XPathDescendantIterator.cs
- OpenTypeCommon.cs
- TimeSpanValidatorAttribute.cs
- DataSetUtil.cs
- UrlPath.cs
- TcpClientCredentialType.cs
- FunctionImportElement.cs
- SystemIPGlobalStatistics.cs
- RegexRunner.cs
- ComponentCodeDomSerializer.cs
- SudsCommon.cs
- EdmSchemaError.cs
- ClientBuildManager.cs
- FormParameter.cs
- PointAnimationUsingPath.cs
- TextRange.cs
- SchemaElementLookUpTable.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- EntityObject.cs
- TextTreeText.cs
- PartialCachingControl.cs
- MenuAdapter.cs
- BindingManagerDataErrorEventArgs.cs
- initElementDictionary.cs
- datacache.cs
- EventEntry.cs
- GroupItem.cs
- WsatTransactionHeader.cs
- GridView.cs
- SafeRightsManagementEnvironmentHandle.cs
- DataColumnMapping.cs
- Int32RectConverter.cs
- SQLConvert.cs
- DbMetaDataCollectionNames.cs
- ToolStripSplitButton.cs
- ResponseBodyWriter.cs
- DesignTimeType.cs