Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / MetadataPropertyvalue.cs / 1599186 / MetadataPropertyvalue.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace System.Data.Metadata.Edm { ////// Class representing a metadata property on an item. Supports /// redirection from MetadataProperty instance to item property value. /// internal sealed class MetadataPropertyValue { internal MetadataPropertyValue(PropertyInfo propertyInfo, MetadataItem item) { Debug.Assert(null != propertyInfo); Debug.Assert(null != item); _propertyInfo = propertyInfo; _item = item; } private PropertyInfo _propertyInfo; private MetadataItem _item; [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] internal object GetValue() { return _propertyInfo.GetValue(_item, new object[] { }); } } } // 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.Data.Common; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; namespace System.Data.Metadata.Edm { ////// Class representing a metadata property on an item. Supports /// redirection from MetadataProperty instance to item property value. /// internal sealed class MetadataPropertyValue { internal MetadataPropertyValue(PropertyInfo propertyInfo, MetadataItem item) { Debug.Assert(null != propertyInfo); Debug.Assert(null != item); _propertyInfo = propertyInfo; _item = item; } private PropertyInfo _propertyInfo; private MetadataItem _item; [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] internal object GetValue() { return _propertyInfo.GetValue(_item, new object[] { }); } } } // 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
- ModelItemDictionaryImpl.cs
- Rotation3D.cs
- NodeLabelEditEvent.cs
- WeakReference.cs
- Switch.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ObjectSpanRewriter.cs
- TTSEvent.cs
- TreeIterators.cs
- BrowserInteropHelper.cs
- HtmlInputPassword.cs
- StretchValidation.cs
- NominalTypeEliminator.cs
- RenderOptions.cs
- ResXResourceWriter.cs
- TypeUsage.cs
- BrushConverter.cs
- ObfuscateAssemblyAttribute.cs
- Point3DAnimation.cs
- Subtree.cs
- MemberDescriptor.cs
- CacheAxisQuery.cs
- DefaultMergeHelper.cs
- SendMessageChannelCache.cs
- RectValueSerializer.cs
- WindowsRegion.cs
- CoTaskMemUnicodeSafeHandle.cs
- PartialList.cs
- TableLayoutPanelResizeGlyph.cs
- DockAndAnchorLayout.cs
- WorkflowInstanceExtensionProvider.cs
- ConcatQueryOperator.cs
- GlyphRunDrawing.cs
- SymbolDocumentInfo.cs
- X509ClientCertificateCredentialsElement.cs
- ASCIIEncoding.cs
- activationcontext.cs
- DataKey.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ItemCollection.cs
- RegistryConfigurationProvider.cs
- EntityDataSourceView.cs
- SqlTopReducer.cs
- StructuralCache.cs
- SqlProviderServices.cs
- DataGridViewRowPrePaintEventArgs.cs
- Color.cs
- EndpointConfigContainer.cs
- XmlRootAttribute.cs
- PersonalizationState.cs
- RadioButton.cs
- SchemaElementLookUpTable.cs
- DbXmlEnabledProviderManifest.cs
- ReturnType.cs
- MetadataPropertyvalue.cs
- NameValueSectionHandler.cs
- MemberRelationshipService.cs
- BamlResourceContent.cs
- AppDomainAttributes.cs
- SqlDataSourceCache.cs
- VirtualPath.cs
- MemoryRecordBuffer.cs
- DynamicAttribute.cs
- WebConfigurationManager.cs
- TraceSection.cs
- ClientData.cs
- SizeAnimationBase.cs
- SizeConverter.cs
- ProfileService.cs
- UriScheme.cs
- BrowsableAttribute.cs
- AssertSection.cs
- SID.cs
- DatatypeImplementation.cs
- WebPartConnectionsCancelEventArgs.cs
- ToolStripEditorManager.cs
- SpnEndpointIdentity.cs
- MSG.cs
- CodeTypeParameterCollection.cs
- nulltextcontainer.cs
- EncryptedType.cs
- TimeoutException.cs
- Debug.cs
- TypeExtensions.cs
- AccessViolationException.cs
- ParenthesizePropertyNameAttribute.cs
- LOSFormatter.cs
- DescriptionAttribute.cs
- VisualStateGroup.cs
- SettingsPropertyValueCollection.cs
- DotAtomReader.cs
- CommonServiceBehaviorElement.cs
- ColumnWidthChangedEvent.cs
- DetailsViewDeleteEventArgs.cs
- HeaderedItemsControl.cs
- InvocationExpression.cs
- WebBodyFormatMessageProperty.cs
- WebPartEditorApplyVerb.cs
- Maps.cs
- Label.cs