Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / Util / DefaultValueMapping.cs / 1305376 / DefaultValueMapping.cs
namespace System.Web.DynamicData.Util { using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; internal class DefaultValueMapping { private IDictionary_defaultValues; public DictionaryCustomTypeDescriptor Instance { get; private set; } public IDictionary Values { get { return _defaultValues; } } public DefaultValueMapping(IDictionary defaultValues) { Debug.Assert(defaultValues != null); _defaultValues = defaultValues; // Build a custom type descriptor which will act as a lightweight wrapper around the dictionary. Instance = new DictionaryCustomTypeDescriptor(defaultValues); } public bool Contains(MetaColumn column) { Debug.Assert(_defaultValues != null); return Misc.IsColumnInDictionary(column, _defaultValues); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.DynamicData.Util { using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; internal class DefaultValueMapping { private IDictionary _defaultValues; public DictionaryCustomTypeDescriptor Instance { get; private set; } public IDictionary Values { get { return _defaultValues; } } public DefaultValueMapping(IDictionary defaultValues) { Debug.Assert(defaultValues != null); _defaultValues = defaultValues; // Build a custom type descriptor which will act as a lightweight wrapper around the dictionary. Instance = new DictionaryCustomTypeDescriptor(defaultValues); } public bool Contains(MetaColumn column) { Debug.Assert(_defaultValues != null); return Misc.IsColumnInDictionary(column, _defaultValues); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpConfigurationSystem.cs
- MULTI_QI.cs
- SafeFileMappingHandle.cs
- XPathDocumentNavigator.cs
- ActiveXSite.cs
- XPathNodeIterator.cs
- ManipulationInertiaStartingEventArgs.cs
- ACE.cs
- TimelineGroup.cs
- SecurityAppliedMessage.cs
- TextBlockAutomationPeer.cs
- CodeCommentStatement.cs
- AttachInfo.cs
- LookupBindingPropertiesAttribute.cs
- ComplexType.cs
- ExpressionPrefixAttribute.cs
- BuildProviderAppliesToAttribute.cs
- PowerModeChangedEventArgs.cs
- StreamGeometry.cs
- XmlSchemaType.cs
- BehaviorDragDropEventArgs.cs
- Utils.cs
- TriggerAction.cs
- MsmqAppDomainProtocolHandler.cs
- TriggerCollection.cs
- DataGridViewComboBoxEditingControl.cs
- XhtmlTextWriter.cs
- UIPermission.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataServices.cs
- EntityDataSourceSelectedEventArgs.cs
- TextFormatterHost.cs
- DataGridCellEditEndingEventArgs.cs
- TypeAccessException.cs
- DesignerTransactionCloseEvent.cs
- MDIWindowDialog.cs
- DtrList.cs
- FileStream.cs
- TypeExtension.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BasePattern.cs
- Utils.cs
- OleDbPermission.cs
- TextRangeEditTables.cs
- PkcsUtils.cs
- BatchServiceHost.cs
- UserMapPath.cs
- CodeDOMProvider.cs
- PropertyEmitter.cs
- EngineSiteSapi.cs
- Frame.cs
- oledbmetadatacollectionnames.cs
- EmissiveMaterial.cs
- SoapCodeExporter.cs
- XmlSchemaAppInfo.cs
- TableParagraph.cs
- CodeAttributeArgumentCollection.cs
- ThreadSafeMessageFilterTable.cs
- IndexedString.cs
- PartialCachingControl.cs
- RemotingSurrogateSelector.cs
- DbProviderSpecificTypePropertyAttribute.cs
- X509SubjectKeyIdentifierClause.cs
- InvalidPrinterException.cs
- TextTreePropertyUndoUnit.cs
- ClientCultureInfo.cs
- ColumnMapProcessor.cs
- SqlDataSource.cs
- PipelineModuleStepContainer.cs
- AudioBase.cs
- ObservableCollection.cs
- BaseComponentEditor.cs
- StreamInfo.cs
- SqlCommand.cs
- FillBehavior.cs
- NavigatorInvalidBodyAccessException.cs
- ParentQuery.cs
- XmlILAnnotation.cs
- GeometryDrawing.cs
- GraphicsPath.cs
- RuntimeArgumentHandle.cs
- TdsParserSafeHandles.cs
- IPPacketInformation.cs
- XmlDocumentViewSchema.cs
- HostingPreferredMapPath.cs
- BinaryObjectReader.cs
- TextParagraphView.cs
- Console.cs
- CompositeControl.cs
- PlaceHolder.cs
- ScrollProperties.cs
- WindowsNonControl.cs
- NumericExpr.cs
- BaseTemplatedMobileComponentEditor.cs
- ComponentManagerBroker.cs
- x509store.cs
- EnumUnknown.cs
- ServiceMoniker.cs
- SQLResource.cs
- TriggerActionCollection.cs