Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Converters / Generated / Int32RectValueSerializer.cs / 2 / Int32RectValueSerializer.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.WindowsBase; using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Converters { ////// Int32RectValueSerializer - ValueSerializer class for converting instances of strings to and from Int32Rect instances /// This is used by the MarkupWriter class. /// public class Int32RectValueSerializer : 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 Int32Rect)) { return false; } return true; } ////// Converts a string into a Int32Rect. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Int32Rect.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 Int32Rect) { Int32Rect instance = (Int32Rect) value; #pragma warning suppress 6506 // instance is obviously not null return instance.ConvertToString(null, System.Windows.Markup.TypeConverterHelper.EnglishUSCulture ); } 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.WindowsBase; using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using System.Windows.Converters; using System.Windows; #pragma warning disable 1634, 1691 // suppressing PreSharp warnings namespace System.Windows.Converters { ////// Int32RectValueSerializer - ValueSerializer class for converting instances of strings to and from Int32Rect instances /// This is used by the MarkupWriter class. /// public class Int32RectValueSerializer : 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 Int32Rect)) { return false; } return true; } ////// Converts a string into a Int32Rect. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Int32Rect.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 Int32Rect) { Int32Rect instance = (Int32Rect) value; #pragma warning suppress 6506 // instance is obviously not null return instance.ConvertToString(null, System.Windows.Markup.TypeConverterHelper.EnglishUSCulture ); } 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
- SchemaMapping.cs
- GeneralTransform3DTo2DTo3D.cs
- SettingsPropertyCollection.cs
- ScriptingJsonSerializationSection.cs
- LongCountAggregationOperator.cs
- DataGridViewColumnEventArgs.cs
- JsonDataContract.cs
- ApplicationFileParser.cs
- ExecutionContext.cs
- ObjectHelper.cs
- DataGridViewComboBoxEditingControl.cs
- ReadOnlyAttribute.cs
- SafeNativeMethods.cs
- XPathNodeInfoAtom.cs
- MailMessageEventArgs.cs
- SqlTopReducer.cs
- FreezableCollection.cs
- Facet.cs
- StyleSheetDesigner.cs
- EventLogPermissionHolder.cs
- XmlNodeReader.cs
- TemplateComponentConnector.cs
- InnerItemCollectionView.cs
- AnchorEditor.cs
- Oci.cs
- UpdatePanelTrigger.cs
- TrimSurroundingWhitespaceAttribute.cs
- WebEventCodes.cs
- TextLineResult.cs
- EndpointDiscoveryMetadataCD1.cs
- LifetimeServices.cs
- HttpCapabilitiesSectionHandler.cs
- OptimalTextSource.cs
- datacache.cs
- HandlerFactoryWrapper.cs
- CharConverter.cs
- ErrorProvider.cs
- LinqDataSourceView.cs
- XmlDictionaryReader.cs
- OracleParameterCollection.cs
- ByteFacetDescriptionElement.cs
- ItemContainerProviderWrapper.cs
- DataGridTable.cs
- TranslateTransform3D.cs
- SafeFileMappingHandle.cs
- GraphicsContext.cs
- GlobalEventManager.cs
- RayHitTestParameters.cs
- ServiceHostingEnvironment.cs
- PropertyIDSet.cs
- Site.cs
- FileEnumerator.cs
- Control.cs
- Site.cs
- SafeWaitHandle.cs
- EditorOptionAttribute.cs
- TileBrush.cs
- XmlBinaryReaderSession.cs
- MultipleViewPattern.cs
- GridViewRowPresenterBase.cs
- DictionarySectionHandler.cs
- XmlDataImplementation.cs
- NamespaceCollection.cs
- FamilyTypeface.cs
- StringBuilder.cs
- TextTreePropertyUndoUnit.cs
- ConsumerConnectionPoint.cs
- CompositeClientFormatter.cs
- PointLight.cs
- InputReferenceExpression.cs
- HostedAspNetEnvironment.cs
- InstallerTypeAttribute.cs
- PersonalizationProviderHelper.cs
- RegistryPermission.cs
- Documentation.cs
- Ref.cs
- ResourceManagerWrapper.cs
- Rect3DConverter.cs
- XmlReaderSettings.cs
- log.cs
- FileStream.cs
- DataServicePagingProviderWrapper.cs
- MappingSource.cs
- AsynchronousChannelMergeEnumerator.cs
- PersistChildrenAttribute.cs
- PipeStream.cs
- SplashScreenNativeMethods.cs
- AccessText.cs
- ChtmlTextWriter.cs
- ActivityDesignerResources.cs
- QueryHandler.cs
- OracleParameterBinding.cs
- CompensableActivity.cs
- DetailsView.cs
- DataKeyCollection.cs
- ItemAutomationPeer.cs
- MessageSecurityOverMsmqElement.cs
- ResourceFallbackManager.cs
- DesignerActionGlyph.cs
- XmlAttributeAttribute.cs