Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / Converters / Generated / Point3DCollectionValueSerializer.cs / 2 / 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, CultureInfo.GetCultureInfo("en-us") ); } return base.ConvertToString(value, context); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// 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, CultureInfo.GetCultureInfo("en-us") ); } 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
- AttachedPropertyBrowsableForTypeAttribute.cs
- SettingsSection.cs
- ClientBuildManager.cs
- RSAProtectedConfigurationProvider.cs
- SizeChangedEventArgs.cs
- TypeHelpers.cs
- ActivityDesignerResources.cs
- xmlformatgeneratorstatics.cs
- SingleConverter.cs
- FixedDSBuilder.cs
- CallSiteBinder.cs
- ValidationEventArgs.cs
- ModuleBuilder.cs
- ChannelFactory.cs
- CodeStatement.cs
- HandlerMappingMemo.cs
- SmiEventSink_DeferedProcessing.cs
- DependencyObjectProvider.cs
- EntityDesignerUtils.cs
- MemoryRecordBuffer.cs
- WindowsProgressbar.cs
- TileBrush.cs
- Configuration.cs
- TraceSwitch.cs
- RadioButtonList.cs
- Compiler.cs
- MissingFieldException.cs
- AutomationTextAttribute.cs
- TemplateAction.cs
- QuestionEventArgs.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- NotEqual.cs
- PixelFormatConverter.cs
- TextMarkerSource.cs
- StyleHelper.cs
- SchemaTypeEmitter.cs
- UnsafeNativeMethods.cs
- ISCIIEncoding.cs
- StringBuilder.cs
- DataGridViewCellStyle.cs
- SafeMILHandle.cs
- CodeMemberProperty.cs
- _NegoState.cs
- NodeCounter.cs
- MSAANativeProvider.cs
- UIPermission.cs
- PropertyGridView.cs
- AuthenticateEventArgs.cs
- EventLogEntryCollection.cs
- SamlAssertion.cs
- SQLInt16Storage.cs
- StyleBamlTreeBuilder.cs
- ImageFormatConverter.cs
- DataAdapter.cs
- PropertyContainer.cs
- Verify.cs
- HuffModule.cs
- MediaPlayer.cs
- SendActivity.cs
- Converter.cs
- LinqDataSourceContextData.cs
- ToolBarPanel.cs
- LinkArea.cs
- XmlSchemaAttributeGroup.cs
- _AutoWebProxyScriptWrapper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PrimitiveRenderer.cs
- DependentList.cs
- OneOfTypeConst.cs
- ModuleBuilder.cs
- HostedImpersonationContext.cs
- AddressAccessDeniedException.cs
- SecurityManager.cs
- CryptoHandle.cs
- StrokeFIndices.cs
- SkipStoryboardToFill.cs
- CompilerResults.cs
- InternalResources.cs
- FactoryGenerator.cs
- KnowledgeBase.cs
- UnsafeCollabNativeMethods.cs
- ObjRef.cs
- StringFunctions.cs
- NamespaceQuery.cs
- SqlNodeAnnotation.cs
- FillErrorEventArgs.cs
- oledbmetadatacolumnnames.cs
- SqlConnectionStringBuilder.cs
- xdrvalidator.cs
- DesignObjectWrapper.cs
- EmissiveMaterial.cs
- ChtmlLinkAdapter.cs
- InlineUIContainer.cs
- CompatibleIComparer.cs
- RSAProtectedConfigurationProvider.cs
- SiteMapPath.cs
- ImageFormatConverter.cs
- GacUtil.cs
- LocatorGroup.cs
- Attributes.cs