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
- VariableDesigner.xaml.cs
- TPLETWProvider.cs
- ScriptManagerProxy.cs
- EntitySqlException.cs
- Int32RectConverter.cs
- EntityContainerEmitter.cs
- GridView.cs
- ApplyTemplatesAction.cs
- IPGlobalProperties.cs
- LockCookie.cs
- VirtualPath.cs
- ParenthesizePropertyNameAttribute.cs
- DataGridCellsPresenter.cs
- ExtentKey.cs
- DbProviderFactoriesConfigurationHandler.cs
- CharacterHit.cs
- SoapHeaderAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- XmlJsonWriter.cs
- ClockGroup.cs
- XPathScanner.cs
- XsltCompileContext.cs
- DataServices.cs
- Renderer.cs
- XdrBuilder.cs
- ResolveNameEventArgs.cs
- DataBoundControlAdapter.cs
- GiveFeedbackEvent.cs
- WebHttpSecurityElement.cs
- ListItemParagraph.cs
- WSIdentityFaultException.cs
- ResourceExpression.cs
- SafeProcessHandle.cs
- ObjectTokenCategory.cs
- EntityConnectionStringBuilder.cs
- VisualStyleTypesAndProperties.cs
- WebPartsSection.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ExtendedPropertiesHandler.cs
- Directory.cs
- EventToken.cs
- ColorConvertedBitmapExtension.cs
- MemberDomainMap.cs
- RuntimeWrappedException.cs
- PrePrepareMethodAttribute.cs
- XPathScanner.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- InvalidateEvent.cs
- RegisteredHiddenField.cs
- ControlBuilder.cs
- SystemNetHelpers.cs
- DrawItemEvent.cs
- AnonymousIdentificationSection.cs
- PersistenceTypeAttribute.cs
- HtmlTextArea.cs
- WebPermission.cs
- RtfFormatStack.cs
- SerTrace.cs
- ProtocolsConfiguration.cs
- PrinterSettings.cs
- MergePropertyDescriptor.cs
- RedistVersionInfo.cs
- XmlQueryRuntime.cs
- SystemIPInterfaceProperties.cs
- MulticastDelegate.cs
- SafeNativeMethods.cs
- ProxyHwnd.cs
- BitStack.cs
- AttributeCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ChildDocumentBlock.cs
- RuntimeEnvironment.cs
- WebHostScriptMappingsInstallComponent.cs
- ProfilePropertySettings.cs
- AppSettingsExpressionBuilder.cs
- GuidConverter.cs
- RegistryConfigurationProvider.cs
- AppDomainManager.cs
- DBBindings.cs
- DataGridViewCellCancelEventArgs.cs
- ReadContentAsBinaryHelper.cs
- StrongNameKeyPair.cs
- ExpressionConverter.cs
- ActiveXHost.cs
- CodeDomLocalizationProvider.cs
- WorkflowDesignerColors.cs
- BaseUriHelper.cs
- While.cs
- EntityDataSourceView.cs
- DropDownHolder.cs
- PolyBezierSegment.cs
- DLinqDataModelProvider.cs
- StringStorage.cs
- BookmarkTable.cs
- NativeMethodsOther.cs
- MethodBuilderInstantiation.cs
- TypeConverters.cs
- querybuilder.cs
- LicenseManager.cs
- ExpressionBuilderCollection.cs