Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Converters / Generated / Point3DCollectionValueSerializer.cs / 1305600 / Point3DCollectionValueSerializer.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 { ////// Point3DCollectionValueSerializer - ValueSerializer class for converting instances of strings to and from Point3DCollection instances /// This is used by the MarkupWriter class. /// public class Point3DCollectionValueSerializer : 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 Point3DCollection)) { return false; } return true; } ////// Converts a string into a Point3DCollection. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Point3DCollection.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 Point3DCollection) { Point3DCollection instance = (Point3DCollection) 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
- HtmlInputReset.cs
- GroupBox.cs
- CryptoKeySecurity.cs
- ReliableSessionBindingElementImporter.cs
- OdbcEnvironmentHandle.cs
- EditorBrowsableAttribute.cs
- MediaElement.cs
- PageParserFilter.cs
- BinaryObjectReader.cs
- HtmlInputReset.cs
- SecurityRuntime.cs
- CacheOutputQuery.cs
- UriTemplateTrieNode.cs
- MediaCommands.cs
- WizardPanelChangingEventArgs.cs
- AuthenticationManager.cs
- TransactionFormatter.cs
- IResourceProvider.cs
- NativeCppClassAttribute.cs
- InstallerTypeAttribute.cs
- TextBoxRenderer.cs
- TagMapInfo.cs
- XamlGridLengthSerializer.cs
- AppDomainProtocolHandler.cs
- RowUpdatingEventArgs.cs
- UriWriter.cs
- ListBox.cs
- LinkedDataMemberFieldEditor.cs
- ToolStripLabel.cs
- PseudoWebRequest.cs
- StartUpEventArgs.cs
- HotSpotCollection.cs
- SynchronizationScope.cs
- StatusBarAutomationPeer.cs
- StrokeNodeData.cs
- FormsAuthenticationTicket.cs
- _ProxyRegBlob.cs
- AssemblyCache.cs
- XmlNode.cs
- ValidatingPropertiesEventArgs.cs
- SqlParameter.cs
- MethodToken.cs
- PointConverter.cs
- TreeNodeEventArgs.cs
- ObjectMemberMapping.cs
- DetailsViewPageEventArgs.cs
- NamespaceList.cs
- IMembershipProvider.cs
- TrackingRecord.cs
- storepermission.cs
- ContentPosition.cs
- WebReferencesBuildProvider.cs
- Vector3D.cs
- RemotingConfigParser.cs
- InvalidOleVariantTypeException.cs
- FieldBuilder.cs
- SafeEventLogWriteHandle.cs
- CodeRemoveEventStatement.cs
- ValidatedControlConverter.cs
- FixedSOMLineCollection.cs
- UniqueID.cs
- CustomAttribute.cs
- TextCompositionManager.cs
- Console.cs
- MachineKeySection.cs
- SafeHandle.cs
- SrgsGrammar.cs
- SqlFlattener.cs
- ExtendedTransformFactory.cs
- XmlSchemaSimpleContent.cs
- AnonymousIdentificationSection.cs
- ListViewUpdateEventArgs.cs
- RelOps.cs
- FixedSOMTableRow.cs
- MatrixAnimationUsingKeyFrames.cs
- ListBoxItem.cs
- UriSection.cs
- Highlights.cs
- ObjectHandle.cs
- RefExpr.cs
- TextRangeEditTables.cs
- ObjectItemCollection.cs
- ConfigurationPropertyCollection.cs
- Odbc32.cs
- IdentifierCollection.cs
- PKCS1MaskGenerationMethod.cs
- NamedElement.cs
- MaterialCollection.cs
- RelativeSource.cs
- PromptBuilder.cs
- ServiceDesigner.cs
- CompletedAsyncResult.cs
- CryptoProvider.cs
- PeerToPeerException.cs
- AxisAngleRotation3D.cs
- ServiceModelTimeSpanValidator.cs
- OdbcCommand.cs
- EntryIndex.cs
- AppDomainAttributes.cs
- NameNode.cs