Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Converters / Generated / Point4DValueSerializer.cs / 1305600 / Point4DValueSerializer.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.Collections; using MS.Internal.PresentationCore; using MS.Utility; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Security; using System.Security.Permissions; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; using System.Windows.Media.Imaging; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Media.Media3D.Converters { ////// Point4DValueSerializer - ValueSerializer class for converting instances of strings to and from Point4D instances /// This is used by the MarkupWriter class. /// public class Point4DValueSerializer : ValueSerializer { ////// Returns true. /// public override bool CanConvertFromString(string value, IValueSerializerContext context) { return true; } ////// Returns true if the given value can be converted into a string /// public override bool CanConvertToString(object value, IValueSerializerContext context) { // Validate the input type if (!(value is Point4D)) { return false; } return true; } ////// Converts a string into a Point4D. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Point4D.Parse(value ); } else { return base.ConvertFromString( value, context ); } } ////// Converts the value into a string. /// public override string ConvertToString(object value, IValueSerializerContext context) { if (value is Point4D) { Point4D instance = (Point4D) value; #pragma warning suppress 6506 // instance is obviously not null return instance.ConvertToString(null, System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS); } return base.ConvertToString(value, context); } } } // 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
- ZipIOLocalFileHeader.cs
- DataBindingCollection.cs
- ComboBoxDesigner.cs
- HtmlInputPassword.cs
- DbConnectionPool.cs
- Knowncolors.cs
- UserPrincipalNameElement.cs
- ClientUrlResolverWrapper.cs
- UnsafeNativeMethods.cs
- UpdatePanelControlTrigger.cs
- SqlBooleanMismatchVisitor.cs
- MemberInfoSerializationHolder.cs
- BuildProvider.cs
- DbBuffer.cs
- ErrorReporting.cs
- WindowsGraphics2.cs
- TemplatedWizardStep.cs
- WorkflowServiceNamespace.cs
- PanelDesigner.cs
- TriggerActionCollection.cs
- ProcessInfo.cs
- InplaceBitmapMetadataWriter.cs
- figurelength.cs
- AppDomainCompilerProxy.cs
- DataProtection.cs
- XmlChoiceIdentifierAttribute.cs
- ArrayWithOffset.cs
- SubordinateTransaction.cs
- FormViewDeleteEventArgs.cs
- ServiceChannelManager.cs
- ShellProvider.cs
- SqlMethodCallConverter.cs
- Literal.cs
- SqlConnection.cs
- SqlCommand.cs
- CodeGotoStatement.cs
- DataPager.cs
- OracleDataReader.cs
- TextServicesContext.cs
- MonthCalendar.cs
- InputBinder.cs
- MessageDecoder.cs
- _NativeSSPI.cs
- MethodAccessException.cs
- BindUriHelper.cs
- ExpressionVisitorHelpers.cs
- FixUpCollection.cs
- SafeMemoryMappedFileHandle.cs
- ProfileServiceManager.cs
- WorkflowRuntimeBehavior.cs
- XmlValueConverter.cs
- ProviderUtil.cs
- BaseValidator.cs
- DebuggerAttributes.cs
- CompletedAsyncResult.cs
- GuidelineCollection.cs
- StartFileNameEditor.cs
- MobileFormsAuthentication.cs
- StickyNote.cs
- XmlSchemaSimpleType.cs
- InputLangChangeEvent.cs
- SimpleTextLine.cs
- IntegrationExceptionEventArgs.cs
- DbConnectionStringBuilder.cs
- DrawingAttributes.cs
- BookmarkUndoUnit.cs
- GridEntryCollection.cs
- Domain.cs
- altserialization.cs
- FilterException.cs
- PreloadedPackages.cs
- ReadWriteObjectLock.cs
- ComplexObject.cs
- HtmlTableCell.cs
- ForEachAction.cs
- ConfigurationSectionCollection.cs
- PolicyException.cs
- HttpFileCollection.cs
- RequestContextBase.cs
- SEHException.cs
- EncryptedKey.cs
- XslCompiledTransform.cs
- XmlUtf8RawTextWriter.cs
- PipelineDeploymentState.cs
- ColorTransformHelper.cs
- UniqueEventHelper.cs
- DataSourceExpression.cs
- NestedContainer.cs
- TextRange.cs
- iisPickupDirectory.cs
- FileChangesMonitor.cs
- ExtensionSurface.cs
- IdentityModelStringsVersion1.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CommandTreeTypeHelper.cs
- ProtocolsConfigurationEntry.cs
- TextTreeDeleteContentUndoUnit.cs
- ReceiveContent.cs
- ContentType.cs
- SqlCommandBuilder.cs