Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Converters / Generated / Vector3DCollectionValueSerializer.cs / 1305600 / Vector3DCollectionValueSerializer.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 { ////// Vector3DCollectionValueSerializer - ValueSerializer class for converting instances of strings to and from Vector3DCollection instances /// This is used by the MarkupWriter class. /// public class Vector3DCollectionValueSerializer : 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 Vector3DCollection)) { return false; } return true; } ////// Converts a string into a Vector3DCollection. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Vector3DCollection.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 Vector3DCollection) { Vector3DCollection instance = (Vector3DCollection) 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
- ClientRequest.cs
- MobileUserControlDesigner.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- EmptyReadOnlyDictionaryInternal.cs
- SiteMapDataSourceDesigner.cs
- StateMachineAction.cs
- ImageMapEventArgs.cs
- DataBoundControlHelper.cs
- FakeModelItemImpl.cs
- DependencyObjectType.cs
- MessageDescriptionCollection.cs
- PriorityItem.cs
- ColorAnimation.cs
- DSACryptoServiceProvider.cs
- InProcStateClientManager.cs
- Table.cs
- PresentationAppDomainManager.cs
- Intellisense.cs
- LogEntrySerializer.cs
- DirectionalLight.cs
- ByteConverter.cs
- WindowsFormsSectionHandler.cs
- ComboBoxAutomationPeer.cs
- AsymmetricSecurityBindingElement.cs
- CodeCastExpression.cs
- UnicastIPAddressInformationCollection.cs
- TemplateKey.cs
- ConnectionsZone.cs
- OdbcError.cs
- DoubleKeyFrameCollection.cs
- ApplicationCommands.cs
- ComponentSerializationService.cs
- StrongNamePublicKeyBlob.cs
- ConfigUtil.cs
- TransformerTypeCollection.cs
- UserControl.cs
- ScriptHandlerFactory.cs
- SplitContainer.cs
- XsltOutput.cs
- ContactManager.cs
- SqlDataSource.cs
- OciEnlistContext.cs
- SQLMembershipProvider.cs
- Exception.cs
- PathGeometry.cs
- InvalidAsynchronousStateException.cs
- PartialCachingAttribute.cs
- Zone.cs
- SchemaMerger.cs
- ContainerUtilities.cs
- TemplateBindingExpression.cs
- FixedSOMFixedBlock.cs
- WebDescriptionAttribute.cs
- RegisteredArrayDeclaration.cs
- WebPartTransformerCollection.cs
- IsolatedStoragePermission.cs
- UIElementCollection.cs
- GeometryGroup.cs
- ProfilePropertySettingsCollection.cs
- Matrix3DConverter.cs
- UnsafePeerToPeerMethods.cs
- ResourceAssociationSetEnd.cs
- WorkflowServiceHost.cs
- AssemblyHash.cs
- GridViewDeleteEventArgs.cs
- HtmlWindowCollection.cs
- TypeUtil.cs
- LocatorGroup.cs
- TypeSystemHelpers.cs
- DoubleCollectionConverter.cs
- ImportContext.cs
- UriSection.cs
- Attributes.cs
- ClientTargetCollection.cs
- SignedXml.cs
- XslCompiledTransform.cs
- QueryStringHandler.cs
- wgx_sdk_version.cs
- MediaTimeline.cs
- ExpressionBindings.cs
- BoolExpr.cs
- InternalConfigHost.cs
- TimelineGroup.cs
- MappedMetaModel.cs
- RangeValuePattern.cs
- WebControl.cs
- ScriptManager.cs
- SharedStatics.cs
- _NegoState.cs
- GenericsInstances.cs
- Preprocessor.cs
- TextMetrics.cs
- ADMembershipUser.cs
- FrameworkContextData.cs
- SafeEventLogReadHandle.cs
- OraclePermission.cs
- Menu.cs
- COM2Properties.cs
- StackBuilderSink.cs
- Literal.cs