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
- UmAlQuraCalendar.cs
- ItemCollection.cs
- ReadOnlyDataSource.cs
- MouseWheelEventArgs.cs
- Model3DCollection.cs
- AuthenticateEventArgs.cs
- ContentAlignmentEditor.cs
- ObjectSelectorEditor.cs
- DocumentGridPage.cs
- ScriptRegistrationManager.cs
- TreeSet.cs
- XmlNamespaceManager.cs
- SQLInt64.cs
- PathTooLongException.cs
- CollectionChangeEventArgs.cs
- FixedSchema.cs
- MD5.cs
- ScriptServiceAttribute.cs
- EmptyEnumerator.cs
- Cursor.cs
- FontFamilyIdentifier.cs
- InkPresenterAutomationPeer.cs
- StringAnimationUsingKeyFrames.cs
- HttpsHostedTransportConfiguration.cs
- ResourceManagerWrapper.cs
- OptimalTextSource.cs
- PipeConnection.cs
- MissingMemberException.cs
- ObjectSecurityT.cs
- TextTreeInsertUndoUnit.cs
- SchemaSetCompiler.cs
- MarkupCompiler.cs
- DeviceFilterDictionary.cs
- DesignerLoader.cs
- XmlSchemaType.cs
- OpacityConverter.cs
- StateBag.cs
- TraceContextEventArgs.cs
- BlockExpression.cs
- DataRowExtensions.cs
- ReferencedCollectionType.cs
- RsaSecurityKey.cs
- TemplateBaseAction.cs
- GACMembershipCondition.cs
- Match.cs
- DefaultParameterValueAttribute.cs
- UnSafeCharBuffer.cs
- CharacterBufferReference.cs
- ZipIOLocalFileBlock.cs
- FlowNode.cs
- IDReferencePropertyAttribute.cs
- EntitySetRetriever.cs
- DatePickerTextBox.cs
- WeakEventManager.cs
- BoolExpression.cs
- ISCIIEncoding.cs
- MapPathBasedVirtualPathProvider.cs
- CustomErrorsSection.cs
- TextTreeObjectNode.cs
- HttpHandlerAction.cs
- WebBrowserProgressChangedEventHandler.cs
- DateBoldEvent.cs
- X509ChainPolicy.cs
- XamlSerializationHelper.cs
- ConfigXmlComment.cs
- EventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- DynamicResourceExtension.cs
- BatchParser.cs
- PreProcessInputEventArgs.cs
- EntityContainerEmitter.cs
- RangeValidator.cs
- URL.cs
- WizardSideBarListControlItemEventArgs.cs
- XamlSerializationHelper.cs
- COM2ComponentEditor.cs
- BehaviorEditorPart.cs
- HWStack.cs
- odbcmetadatafactory.cs
- WindowsGrip.cs
- WindowsTokenRoleProvider.cs
- EditCommandColumn.cs
- SafeCertificateStore.cs
- Type.cs
- PageAdapter.cs
- Sql8ConformanceChecker.cs
- Mapping.cs
- PropertyGeneratedEventArgs.cs
- CheckedPointers.cs
- SqlParameterizer.cs
- CodeDefaultValueExpression.cs
- DataGridViewCellParsingEventArgs.cs
- BrowserDefinition.cs
- CacheForPrimitiveTypes.cs
- StreamGeometryContext.cs
- _UriTypeConverter.cs
- ExpressionList.cs
- JulianCalendar.cs
- XmlDocumentType.cs
- ThreadAttributes.cs