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
- InvokeHandlers.cs
- UnmanagedMemoryStreamWrapper.cs
- ResourceContainer.cs
- Selection.cs
- HwndSource.cs
- MostlySingletonList.cs
- ServiceDocument.cs
- NodeInfo.cs
- GridSplitter.cs
- WebServiceEnumData.cs
- RtfControlWordInfo.cs
- Int64Converter.cs
- Command.cs
- SoapTypeAttribute.cs
- CustomTypeDescriptor.cs
- RepeaterItem.cs
- httpserverutility.cs
- CacheOutputQuery.cs
- CodeDirectionExpression.cs
- UnsignedPublishLicense.cs
- Comparer.cs
- RelatedView.cs
- RegexCompilationInfo.cs
- ACL.cs
- OrderPreservingPipeliningMergeHelper.cs
- BoolExpression.cs
- SmtpReplyReaderFactory.cs
- AmbientValueAttribute.cs
- InputLanguageSource.cs
- GridViewSortEventArgs.cs
- EventData.cs
- DocumentEventArgs.cs
- StateMachineSubscriptionManager.cs
- AlignmentYValidation.cs
- Compiler.cs
- TrustLevel.cs
- TextBoxView.cs
- TextSelection.cs
- KeyNotFoundException.cs
- GeneralTransform3D.cs
- ExtenderProvidedPropertyAttribute.cs
- ModelVisual3D.cs
- StickyNote.cs
- OleDbWrapper.cs
- DecimalStorage.cs
- SmiEventSink_DeferedProcessing.cs
- TemplateBaseAction.cs
- PrintPreviewDialog.cs
- ReadOnlyCollection.cs
- FloatMinMaxAggregationOperator.cs
- AddInControllerImpl.cs
- IconBitmapDecoder.cs
- Stack.cs
- TableParaClient.cs
- XmlSchemaCollection.cs
- _BasicClient.cs
- ContentType.cs
- BufferModeSettings.cs
- CommandHelper.cs
- TextUtf8RawTextWriter.cs
- Form.cs
- UrlParameterWriter.cs
- MimeTypeMapper.cs
- TextTreeObjectNode.cs
- SqlClientMetaDataCollectionNames.cs
- FrameworkName.cs
- NetNamedPipeBinding.cs
- CompModSwitches.cs
- HuffmanTree.cs
- ValueType.cs
- PointLight.cs
- Int64Storage.cs
- TextTreePropertyUndoUnit.cs
- SecurityTokenResolver.cs
- CodeMethodInvokeExpression.cs
- CryptoConfig.cs
- LinkLabelLinkClickedEvent.cs
- XmlArrayAttribute.cs
- PaginationProgressEventArgs.cs
- PropertyNames.cs
- ResourcePermissionBase.cs
- ReadingWritingEntityEventArgs.cs
- XPathSingletonIterator.cs
- SQLDouble.cs
- TreeWalkHelper.cs
- ResourceContainer.cs
- Registry.cs
- ApplicationId.cs
- BindingContext.cs
- XmlILAnnotation.cs
- XmlSchemaExporter.cs
- ConditionalAttribute.cs
- Opcode.cs
- PrimitiveList.cs
- CodeConditionStatement.cs
- ValueUtilsSmi.cs
- ListViewGroup.cs
- SourceFileBuildProvider.cs
- XmlSerializationReader.cs
- RepeatBehavior.cs