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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbInfoMessageEvent.cs
- UIElementParaClient.cs
- EnumConverter.cs
- WmiPutTraceRecord.cs
- CompositeActivityDesigner.cs
- StreamResourceInfo.cs
- ObfuscateAssemblyAttribute.cs
- RecordManager.cs
- IriParsingElement.cs
- CodeMethodReturnStatement.cs
- ColumnHeaderConverter.cs
- GetWinFXPath.cs
- FlowDocumentReaderAutomationPeer.cs
- ProcessModule.cs
- WebReferencesBuildProvider.cs
- UrlMappingCollection.cs
- DefaultParameterValueAttribute.cs
- WindowsListViewGroup.cs
- XmlBaseReader.cs
- ColorConvertedBitmapExtension.cs
- MemoryRecordBuffer.cs
- IgnoreSectionHandler.cs
- StylusEventArgs.cs
- SystemResources.cs
- ScalarRestriction.cs
- ReliableOutputConnection.cs
- MediaTimeline.cs
- WeakReference.cs
- XPathAncestorIterator.cs
- OrthographicCamera.cs
- WriteStateInfoBase.cs
- DragStartedEventArgs.cs
- DataStorage.cs
- CodeTypeConstructor.cs
- ListView.cs
- XmlTextReaderImplHelpers.cs
- SessionEndedEventArgs.cs
- HasCopySemanticsAttribute.cs
- OleDbRowUpdatedEvent.cs
- CopyEncoder.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DependencyObjectPropertyDescriptor.cs
- DetailsViewRowCollection.cs
- VectorValueSerializer.cs
- Evidence.cs
- SynchronizationContext.cs
- ExceptionUtil.cs
- ByteAnimationBase.cs
- Popup.cs
- RoleGroupCollection.cs
- XmlnsCompatibleWithAttribute.cs
- CqlBlock.cs
- RelationshipEnd.cs
- BaseValidator.cs
- EventRecord.cs
- WebException.cs
- UidManager.cs
- SyncMethodInvoker.cs
- ListItemCollection.cs
- ModelItemDictionary.cs
- DoubleLinkList.cs
- BoundField.cs
- ObjectReaderCompiler.cs
- TileBrush.cs
- ResourceBinder.cs
- ToolStripDesigner.cs
- HMACSHA512.cs
- NetworkStream.cs
- RemotingHelper.cs
- PropertyRecord.cs
- StorageConditionPropertyMapping.cs
- SecurityDescriptor.cs
- ToolStripManager.cs
- TextTreeUndoUnit.cs
- ApplicationServiceManager.cs
- EntityDataSourceDesigner.cs
- FlowLayoutPanel.cs
- BaseComponentEditor.cs
- DomNameTable.cs
- ValidationContext.cs
- IsolatedStorage.cs
- TraceListener.cs
- wpf-etw.cs
- DataQuery.cs
- TypeConverter.cs
- ClientSideProviderDescription.cs
- SponsorHelper.cs
- GradientBrush.cs
- MemberCollection.cs
- DefaultValueTypeConverter.cs
- ModelTreeEnumerator.cs
- HtmlTextArea.cs
- WindowsFormsSynchronizationContext.cs
- FixedSOMPageElement.cs
- LabelAutomationPeer.cs
- EventManager.cs
- UpdatePanelTriggerCollection.cs
- PartialCachingControl.cs
- TransformerInfo.cs
- CustomSignedXml.cs