Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / Markup / StringValueSerializer.cs / 1 / StringValueSerializer.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: StringValueSerializer.cs // // Contents: Stub value serializer for strings // // Created: 04/28/2005 [....] // //----------------------------------------------------------------------- using System.Windows.Markup; namespace MS.Internal.Serialization { ////// Stub string serializer. It exists to remove special caseing strings in a couple cases in the /// serialization code. It essentially states that strings are serialized as their value. /// internal sealed class StringValueSerializer : ValueSerializer { public StringValueSerializer() { } public override bool CanConvertToString(object value, IValueSerializerContext context) { return true; } public override bool CanConvertFromString(string value, IValueSerializerContext context) { return true; } public override object ConvertFromString(string value, IValueSerializerContext context) { return value; } public override string ConvertToString(object value, IValueSerializerContext context) { return (string)value; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: StringValueSerializer.cs // // Contents: Stub value serializer for strings // // Created: 04/28/2005 [....] // //----------------------------------------------------------------------- using System.Windows.Markup; namespace MS.Internal.Serialization { ////// Stub string serializer. It exists to remove special caseing strings in a couple cases in the /// serialization code. It essentially states that strings are serialized as their value. /// internal sealed class StringValueSerializer : ValueSerializer { public StringValueSerializer() { } public override bool CanConvertToString(object value, IValueSerializerContext context) { return true; } public override bool CanConvertFromString(string value, IValueSerializerContext context) { return true; } public override object ConvertFromString(string value, IValueSerializerContext context) { return value; } public override string ConvertToString(object value, IValueSerializerContext context) { return (string)value; } } } // 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
- SemanticValue.cs
- streamingZipPartStream.cs
- ImageMap.cs
- TimelineClockCollection.cs
- BrushMappingModeValidation.cs
- PathSegmentCollection.cs
- XNameTypeConverter.cs
- NamedElement.cs
- DropTarget.cs
- FormsIdentity.cs
- KeyValueConfigurationElement.cs
- DropDownList.cs
- base64Transforms.cs
- COM2PropertyPageUITypeConverter.cs
- FieldNameLookup.cs
- Root.cs
- SqlTypeSystemProvider.cs
- ColorConvertedBitmap.cs
- MenuStrip.cs
- EditorPartChrome.cs
- SystemResources.cs
- Italic.cs
- FreezableCollection.cs
- XPathDocumentNavigator.cs
- User.cs
- LayoutUtils.cs
- ZipArchive.cs
- WindowsSlider.cs
- BaseProcessor.cs
- DataGridViewLinkColumn.cs
- TabPage.cs
- UInt16Storage.cs
- FloatSumAggregationOperator.cs
- __Filters.cs
- HttpResponse.cs
- InputBinder.cs
- ImageClickEventArgs.cs
- _CookieModule.cs
- CodeTypeDelegate.cs
- ButtonBaseAutomationPeer.cs
- WebPartUserCapability.cs
- UniqueEventHelper.cs
- DeclaredTypeValidator.cs
- DataGridParentRows.cs
- MainMenu.cs
- DelegateBodyWriter.cs
- InvalidAsynchronousStateException.cs
- NGCPageContentCollectionSerializerAsync.cs
- Knowncolors.cs
- GridViewAutomationPeer.cs
- StringComparer.cs
- ChannelRequirements.cs
- EntityDataSourceSelectedEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- MetaTable.cs
- HoistedLocals.cs
- ButtonFieldBase.cs
- ScriptHandlerFactory.cs
- NameScope.cs
- LinqDataSourceDisposeEventArgs.cs
- AnchoredBlock.cs
- LayoutTable.cs
- ExternalException.cs
- JournalEntry.cs
- SupportedAddressingMode.cs
- View.cs
- CustomCategoryAttribute.cs
- SpeechRecognizer.cs
- TimeEnumHelper.cs
- Font.cs
- ResourcePermissionBaseEntry.cs
- EntityConnection.cs
- UnsettableComboBox.cs
- DTCTransactionManager.cs
- ComponentConverter.cs
- SimpleType.cs
- DataListItemEventArgs.cs
- GroupBox.cs
- CmsInterop.cs
- UpdateManifestForBrowserApplication.cs
- PointAnimationUsingKeyFrames.cs
- Random.cs
- LogSwitch.cs
- GcSettings.cs
- PrefixQName.cs
- ProxyElement.cs
- SoapIgnoreAttribute.cs
- ManifestResourceInfo.cs
- SetStoryboardSpeedRatio.cs
- VirtualPath.cs
- TargetControlTypeAttribute.cs
- CryptoKeySecurity.cs
- TransformPattern.cs
- ScrollPattern.cs
- Camera.cs
- DisplayMemberTemplateSelector.cs
- SqlMethodAttribute.cs
- XmlValidatingReaderImpl.cs
- ResourceExpressionEditor.cs
- EDesignUtil.cs