Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / AssociationEndMember.cs / 1305376 / AssociationEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Data.Objects.DataClasses; 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 Func_getRelatedEndMethod = null; /// cached dynamic method to set a CLR property value on a CLR instance internal FuncGetRelatedEnd { 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Data.Objects.DataClasses; 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 Func_getRelatedEndMethod = null; /// cached dynamic method to set a CLR property value on a CLR instance internal FuncGetRelatedEnd { 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
- ScrollViewerAutomationPeer.cs
- PersonalizablePropertyEntry.cs
- ChangeToolStripParentVerb.cs
- BorderGapMaskConverter.cs
- ImmutableCollection.cs
- WebRequestModuleElement.cs
- KeyPressEvent.cs
- FixedTextPointer.cs
- EventSourceCreationData.cs
- SapiGrammar.cs
- WinInet.cs
- EventBuilder.cs
- WindowsBrush.cs
- InvalidEnumArgumentException.cs
- FormsAuthenticationTicket.cs
- ColumnPropertiesGroup.cs
- CodeDomConfigurationHandler.cs
- FileDialogPermission.cs
- ConvertEvent.cs
- StreamGeometryContext.cs
- CharEnumerator.cs
- ValidationSummary.cs
- MatrixTransform3D.cs
- RadioButtonList.cs
- HtmlTableCellCollection.cs
- ObjectListCommandCollection.cs
- BamlLocalizer.cs
- PixelFormat.cs
- Base64Stream.cs
- MultilineStringConverter.cs
- XmlTextReaderImpl.cs
- BinaryMethodMessage.cs
- SerialStream.cs
- DrawingGroup.cs
- _ConnectionGroup.cs
- DesignerAttributeInfo.cs
- TemplateControlParser.cs
- HexParser.cs
- DrawingBrush.cs
- ContextBase.cs
- GridItemProviderWrapper.cs
- ComplexType.cs
- ApplicationException.cs
- ValidateNames.cs
- BackgroundWorker.cs
- HtmlMeta.cs
- WebPartTransformer.cs
- SchemaImporter.cs
- EpmContentSerializerBase.cs
- SelectedCellsChangedEventArgs.cs
- DesignTimeTemplateParser.cs
- IdentityModelStringsVersion1.cs
- ReadOnlyHierarchicalDataSourceView.cs
- unsafeIndexingFilterStream.cs
- BlurBitmapEffect.cs
- TabPanel.cs
- Base64Stream.cs
- NullableIntMinMaxAggregationOperator.cs
- CheckBoxField.cs
- ZipIOModeEnforcingStream.cs
- NamespaceListProperty.cs
- DataPagerField.cs
- BitmapEffectDrawingContent.cs
- LastQueryOperator.cs
- FullTextState.cs
- basevalidator.cs
- ReflectionUtil.cs
- RoleManagerModule.cs
- TemplateBaseAction.cs
- RegexInterpreter.cs
- GridView.cs
- DateTimeParse.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataList.cs
- VirtualizingStackPanel.cs
- ObjectNavigationPropertyMapping.cs
- FormatterServices.cs
- StrongNameKeyPair.cs
- ActivityExecutor.cs
- PathNode.cs
- SmtpSection.cs
- GridViewUpdateEventArgs.cs
- ContextMarshalException.cs
- Verify.cs
- BatchWriter.cs
- StorageEntityTypeMapping.cs
- ScriptControlDescriptor.cs
- MimeReturn.cs
- PageStatePersister.cs
- BitSet.cs
- MLangCodePageEncoding.cs
- DocumentApplication.cs
- SuspendDesigner.cs
- MessageFault.cs
- SQLDouble.cs
- BindableAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- TextTreeFixupNode.cs
- SqlRecordBuffer.cs
- OpCopier.cs