Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 chuckj // //----------------------------------------------------------------------- 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
- HTMLTagNameToTypeMapper.cs
- FormViewUpdatedEventArgs.cs
- DateTime.cs
- SiteMap.cs
- Convert.cs
- WebPartZone.cs
- Message.cs
- SystemColorTracker.cs
- MergeFailedEvent.cs
- ServerProtocol.cs
- BezierSegment.cs
- EntitySqlQueryState.cs
- XmlDocumentType.cs
- MetadataSerializer.cs
- ListViewCancelEventArgs.cs
- _OverlappedAsyncResult.cs
- PreviewPrintController.cs
- ProviderIncompatibleException.cs
- SaveFileDialogDesigner.cs
- Guid.cs
- DecodeHelper.cs
- ListInitExpression.cs
- GridItemPatternIdentifiers.cs
- MarkerProperties.cs
- CodeIdentifier.cs
- TdsRecordBufferSetter.cs
- SByte.cs
- HttpBindingExtension.cs
- GorillaCodec.cs
- RenderData.cs
- HostingEnvironment.cs
- NameTable.cs
- DecoderFallback.cs
- TextBoxAutoCompleteSourceConverter.cs
- FormView.cs
- OdbcPermission.cs
- CngProperty.cs
- TypeInfo.cs
- MsmqIntegrationMessageProperty.cs
- WrappedReader.cs
- ToolboxItem.cs
- AutomationPropertyInfo.cs
- MyContact.cs
- hwndwrapper.cs
- InheritanceContextHelper.cs
- AppDomain.cs
- autovalidator.cs
- CurrencyManager.cs
- PointConverter.cs
- HttpProfileGroupBase.cs
- TextSpan.cs
- RootProjectionNode.cs
- WebServiceHost.cs
- MimeMultiPart.cs
- BinaryNode.cs
- JpegBitmapEncoder.cs
- TemplateBuilder.cs
- BmpBitmapDecoder.cs
- OverlappedAsyncResult.cs
- DataSourceSerializationException.cs
- InputLanguageCollection.cs
- DoubleStorage.cs
- DomNameTable.cs
- FlowLayoutSettings.cs
- ManagementOperationWatcher.cs
- StringSource.cs
- MissingFieldException.cs
- EditingMode.cs
- SecurityAlgorithmSuiteConverter.cs
- MailMessage.cs
- LinqExpressionNormalizer.cs
- XmlUtf8RawTextWriter.cs
- XmlChoiceIdentifierAttribute.cs
- ObjectDataSourceChooseMethodsPanel.cs
- Base64Encoder.cs
- AliasedSlot.cs
- ControlIdConverter.cs
- ErrorHandler.cs
- FamilyMapCollection.cs
- WindowsMenu.cs
- TextEditorParagraphs.cs
- ImageKeyConverter.cs
- HttpRuntime.cs
- InputLangChangeRequestEvent.cs
- DoubleLink.cs
- CallbackValidator.cs
- DataObjectEventArgs.cs
- configsystem.cs
- ListBoxItemWrapperAutomationPeer.cs
- NullableDecimalSumAggregationOperator.cs
- ImmutableObjectAttribute.cs
- XmlNullResolver.cs
- BookmarkEventArgs.cs
- EvidenceTypeDescriptor.cs
- SignedXml.cs
- SelectionEditor.cs
- InsufficientMemoryException.cs
- DocumentViewer.cs
- ContentPresenter.cs
- ViewSimplifier.cs