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
- Translator.cs
- DockPattern.cs
- GridViewCommandEventArgs.cs
- Size3DValueSerializer.cs
- _BasicClient.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataGridViewColumnCollection.cs
- TypeSystem.cs
- DataTableClearEvent.cs
- versioninfo.cs
- SynchronizationLockException.cs
- BuildProvider.cs
- DocumentOrderQuery.cs
- DataBoundControlAdapter.cs
- ResourceExpressionEditorSheet.cs
- TransportSecurityHelpers.cs
- RuntimeCompatibilityAttribute.cs
- CookielessHelper.cs
- WebBrowserUriTypeConverter.cs
- StrongNamePublicKeyBlob.cs
- ControlParameter.cs
- FilterableData.cs
- DataGridViewRow.cs
- _ProxyChain.cs
- XmlUtf8RawTextWriter.cs
- DynamicResourceExtensionConverter.cs
- EventHandlingScope.cs
- CodeEntryPointMethod.cs
- PrintDialog.cs
- LayoutExceptionEventArgs.cs
- SwitchCase.cs
- ConnectionPointConverter.cs
- XmlSchemaSimpleContentExtension.cs
- TdsParameterSetter.cs
- BaseAutoFormat.cs
- MenuScrollingVisibilityConverter.cs
- autovalidator.cs
- NativeMethods.cs
- SettingsBase.cs
- DataRecordInfo.cs
- MimeParameters.cs
- DisplayNameAttribute.cs
- WMICapabilities.cs
- MexTcpBindingElement.cs
- CodeDirectiveCollection.cs
- StrokeCollection.cs
- PropertyValueChangedEvent.cs
- ConfigurationSettings.cs
- NavigationProperty.cs
- PolygonHotSpot.cs
- ListViewItem.cs
- CodeDOMProvider.cs
- ListView.cs
- ObjectParameter.cs
- UpdatePanelTrigger.cs
- Context.cs
- ThemeableAttribute.cs
- PathParser.cs
- StoreAnnotationsMap.cs
- ValidationManager.cs
- RtfNavigator.cs
- EventsTab.cs
- BlockCollection.cs
- CachedFontFace.cs
- KeyGesture.cs
- SpellerError.cs
- Floater.cs
- X509ScopedServiceCertificateElementCollection.cs
- ModelItemDictionaryImpl.cs
- XmlBaseWriter.cs
- ImmutableObjectAttribute.cs
- ButtonDesigner.cs
- HttpCachePolicy.cs
- TreeNode.cs
- LogicalTreeHelper.cs
- EqualityArray.cs
- GeometryGroup.cs
- SystemDiagnosticsSection.cs
- ColumnHeaderConverter.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- InvalidOleVariantTypeException.cs
- RangeEnumerable.cs
- CompoundFileReference.cs
- WorkflowPersistenceContext.cs
- Timer.cs
- Figure.cs
- Directory.cs
- CatalogPartChrome.cs
- EventListener.cs
- BevelBitmapEffect.cs
- PropVariant.cs
- Int64Converter.cs
- BindingMemberInfo.cs
- ContentFilePart.cs
- InvokeHandlers.cs
- sortedlist.cs
- DomNameTable.cs
- Size3DConverter.cs
- UserThread.cs
- QueryException.cs