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
- SafeBitVector32.cs
- PointHitTestParameters.cs
- DispatchOperation.cs
- SessionEndedEventArgs.cs
- ViewValidator.cs
- ByteStreamMessage.cs
- WebPartTransformer.cs
- DateTimeSerializationSection.cs
- SqlNamer.cs
- BamlLocalizableResource.cs
- XmlReflectionImporter.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- BindingCompleteEventArgs.cs
- TogglePatternIdentifiers.cs
- ToolStripContainerDesigner.cs
- WindowsFormsSynchronizationContext.cs
- BrushMappingModeValidation.cs
- ObjectListCommandEventArgs.cs
- X509UI.cs
- AttributedMetaModel.cs
- Pair.cs
- MobileFormsAuthentication.cs
- Group.cs
- HelpEvent.cs
- DataGridViewCellConverter.cs
- SchemaEntity.cs
- DrawingContextWalker.cs
- CategoryValueConverter.cs
- SmtpDateTime.cs
- CompositionAdorner.cs
- PageAdapter.cs
- HandlerFactoryWrapper.cs
- figurelength.cs
- HttpHandlersSection.cs
- ShaperBuffers.cs
- XmlSchemaIdentityConstraint.cs
- RetrieveVirtualItemEventArgs.cs
- DataGridViewCellEventArgs.cs
- CompositeFontParser.cs
- Vector3DAnimationBase.cs
- BrowserInteropHelper.cs
- X500Name.cs
- FolderLevelBuildProviderCollection.cs
- SqlAliaser.cs
- CodeArgumentReferenceExpression.cs
- PrimarySelectionAdorner.cs
- TableCellCollection.cs
- SqlBuilder.cs
- CommunicationObject.cs
- StylusPointDescription.cs
- BamlBinaryReader.cs
- IMembershipProvider.cs
- X509CertificateRecipientServiceCredential.cs
- Stack.cs
- ParagraphVisual.cs
- DBSqlParser.cs
- BulletChrome.cs
- NativeRecognizer.cs
- ThreadAbortException.cs
- RichTextBoxAutomationPeer.cs
- InstanceLockedException.cs
- XmlNamespaceManager.cs
- NullRuntimeConfig.cs
- TemplateControlCodeDomTreeGenerator.cs
- CompositeTypefaceMetrics.cs
- ApplicationDirectoryMembershipCondition.cs
- DocumentViewerBaseAutomationPeer.cs
- Variable.cs
- FunctionNode.cs
- Pen.cs
- GridViewCommandEventArgs.cs
- ParallelTimeline.cs
- Timer.cs
- SocketException.cs
- XMLSchema.cs
- EmptyReadOnlyDictionaryInternal.cs
- AdapterUtil.cs
- SchemaElement.cs
- Debug.cs
- OperationAbortedException.cs
- BuildResult.cs
- TypeSystemProvider.cs
- TypeSchema.cs
- DataGridColumnCollection.cs
- Control.cs
- XhtmlBasicObjectListAdapter.cs
- OdbcConnectionStringbuilder.cs
- MimeReflector.cs
- ParameterExpression.cs
- ObjectContext.cs
- WebServiceEnumData.cs
- DesignerActionTextItem.cs
- OdbcError.cs
- XmlElementAttributes.cs
- BamlLocalizationDictionary.cs
- CompleteWizardStep.cs
- TrustLevelCollection.cs
- SystemIcmpV6Statistics.cs
- FileSystemEventArgs.cs
- SchemaImporterExtension.cs