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
- SqlSupersetValidator.cs
- _ListenerAsyncResult.cs
- BlockCollection.cs
- X500Name.cs
- ListViewUpdateEventArgs.cs
- HMACSHA384.cs
- DivideByZeroException.cs
- SmtpFailedRecipientException.cs
- StructuredTypeEmitter.cs
- AssertSection.cs
- RewritingValidator.cs
- SystemNetworkInterface.cs
- EtwProvider.cs
- TabItemAutomationPeer.cs
- CngAlgorithmGroup.cs
- ConfigXmlAttribute.cs
- TreeNodeCollectionEditor.cs
- TextModifierScope.cs
- SimpleType.cs
- OrderedDictionary.cs
- WindowShowOrOpenTracker.cs
- CurrentChangingEventManager.cs
- KeyInfo.cs
- MenuItemStyle.cs
- TableCell.cs
- BaseParser.cs
- wgx_exports.cs
- KeyProperty.cs
- StrokeCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- SmtpMail.cs
- MediaElementAutomationPeer.cs
- AudioException.cs
- FontDriver.cs
- CompModHelpers.cs
- PersonalizationStateQuery.cs
- ReferenceEqualityComparer.cs
- RayMeshGeometry3DHitTestResult.cs
- CaseInsensitiveHashCodeProvider.cs
- ColorTransform.cs
- EncryptedData.cs
- SecurityManager.cs
- WebServiceFault.cs
- SqlXml.cs
- StatusStrip.cs
- SerializationEventsCache.cs
- SafeSecurityHelper.cs
- ImageIndexConverter.cs
- ValidationPropertyAttribute.cs
- TypeValidationEventArgs.cs
- Helper.cs
- FileIOPermission.cs
- PassportAuthenticationModule.cs
- FontFamilyIdentifier.cs
- RemotingException.cs
- ComplexLine.cs
- ZipIOBlockManager.cs
- DbMetaDataFactory.cs
- CurrencyManager.cs
- TransactionManager.cs
- Convert.cs
- XPathScanner.cs
- TypeExtensionConverter.cs
- ListBindableAttribute.cs
- EntityProviderFactory.cs
- NavigatorOutput.cs
- PointHitTestResult.cs
- ScriptingRoleServiceSection.cs
- Msec.cs
- InvokePattern.cs
- HostDesigntimeLicenseContext.cs
- XsltQilFactory.cs
- HttpWebRequest.cs
- InvalidProgramException.cs
- ExecutionContext.cs
- ConnectivityStatus.cs
- CombinedGeometry.cs
- ReadOnlyDataSourceView.cs
- ProgressPage.cs
- XmlUnspecifiedAttribute.cs
- ParagraphVisual.cs
- DesignerOptionService.cs
- Helper.cs
- Triplet.cs
- PackageProperties.cs
- WindowVisualStateTracker.cs
- MatrixStack.cs
- DataColumnChangeEvent.cs
- Label.cs
- XmlnsDictionary.cs
- InputReferenceExpression.cs
- MemoryStream.cs
- EmptyElement.cs
- LoadItemsEventArgs.cs
- TextDecorationCollectionConverter.cs
- localization.cs
- ResourcePermissionBaseEntry.cs
- ToolStripButton.cs
- ToolboxService.cs
- DataControlLinkButton.cs