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
- WmlSelectionListAdapter.cs
- ChannelBase.cs
- cache.cs
- XmlDataLoader.cs
- Drawing.cs
- HostingPreferredMapPath.cs
- DecimalMinMaxAggregationOperator.cs
- MsmqOutputSessionChannel.cs
- CqlParser.cs
- RealizationContext.cs
- CultureInfoConverter.cs
- OutputCacheSection.cs
- ParseNumbers.cs
- _NegoStream.cs
- CodeSnippetExpression.cs
- WebBaseEventKeyComparer.cs
- infer.cs
- HttpModuleCollection.cs
- XomlCompilerError.cs
- BuildResult.cs
- OleDbMetaDataFactory.cs
- WindowsTreeView.cs
- SimpleTypeResolver.cs
- Variant.cs
- InfoCardTraceRecord.cs
- Size.cs
- LocalizableResourceBuilder.cs
- smtpconnection.cs
- DoubleLinkListEnumerator.cs
- CodeTypeReferenceSerializer.cs
- TypographyProperties.cs
- WindowsListViewScroll.cs
- SerializationSectionGroup.cs
- VarInfo.cs
- ExpressionBindingCollection.cs
- _HTTPDateParse.cs
- LicenseProviderAttribute.cs
- WorkflowOperationBehavior.cs
- webproxy.cs
- Evaluator.cs
- BaseResourcesBuildProvider.cs
- SynchronizationHandlesCodeDomSerializer.cs
- RichTextBox.cs
- DebugView.cs
- RemoteWebConfigurationHostStream.cs
- ParentQuery.cs
- SqlDataSourceEnumerator.cs
- ClonableStack.cs
- ReadOnlyHierarchicalDataSource.cs
- NamedObject.cs
- FilteredAttributeCollection.cs
- OutgoingWebResponseContext.cs
- EventPrivateKey.cs
- FullTextBreakpoint.cs
- CommandEventArgs.cs
- OdbcPermission.cs
- TypeExtensionConverter.cs
- XhtmlBasicObjectListAdapter.cs
- ErrorFormatterPage.cs
- ZoneLinkButton.cs
- TextFormatterContext.cs
- Cursors.cs
- RoleService.cs
- FieldMetadata.cs
- LineSegment.cs
- StringExpressionSet.cs
- RuntimeDelegateArgument.cs
- ResourceAssociationSetEnd.cs
- Certificate.cs
- TreeWalker.cs
- StreamWithDictionary.cs
- SafeThreadHandle.cs
- MasterPage.cs
- X509Utils.cs
- GeneralTransform3DTo2DTo3D.cs
- RenderDataDrawingContext.cs
- HttpFileCollection.cs
- EditingCommands.cs
- DbBuffer.cs
- PropertyReferenceSerializer.cs
- LoaderAllocator.cs
- XsltSettings.cs
- MessageQueueInstaller.cs
- TdsParserStateObject.cs
- TypeFieldSchema.cs
- ISFClipboardData.cs
- FusionWrap.cs
- QilStrConcatenator.cs
- ComponentCodeDomSerializer.cs
- GridViewRowCollection.cs
- PatternMatcher.cs
- TypeUtil.cs
- SubMenuStyleCollection.cs
- XhtmlBasicLabelAdapter.cs
- LogEntrySerializer.cs
- ObjectConverter.cs
- CellPartitioner.cs
- DataServiceSaveChangesEventArgs.cs
- MouseOverProperty.cs
- ItemsControlAutomationPeer.cs