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 / RectValueSerializer.cs / 2 / RectValueSerializer.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 { ////// RectValueSerializer - ValueSerializer class for converting instances of strings to and from Rect instances /// This is used by the MarkupWriter class. /// public class RectValueSerializer : 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 Rect)) { return false; } return true; } ////// Converts a string into a Rect. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Rect.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 Rect) { Rect instance = (Rect) 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 { ////// RectValueSerializer - ValueSerializer class for converting instances of strings to and from Rect instances /// This is used by the MarkupWriter class. /// public class RectValueSerializer : 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 Rect)) { return false; } return true; } ////// Converts a string into a Rect. /// public override object ConvertFromString(string value, IValueSerializerContext context) { if (value != null) { return Rect.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 Rect) { Rect instance = (Rect) 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
- RadioButtonFlatAdapter.cs
- FixedElement.cs
- NumberSubstitution.cs
- SimpleWebHandlerParser.cs
- HealthMonitoringSection.cs
- XsdBuildProvider.cs
- InputLanguage.cs
- WindowsIdentity.cs
- DeferrableContentConverter.cs
- util.cs
- SmiSettersStream.cs
- GeometryConverter.cs
- HierarchicalDataSourceControl.cs
- FileDialog_Vista_Interop.cs
- FormsAuthenticationEventArgs.cs
- EdmFunction.cs
- GeometryModel3D.cs
- ResourceProviderFactory.cs
- LinqDataSourceView.cs
- DesignerOptionService.cs
- NamespaceEmitter.cs
- ChannelListenerBase.cs
- ReadOnlyHierarchicalDataSource.cs
- SqlReorderer.cs
- AttributeCollection.cs
- LinkTarget.cs
- HGlobalSafeHandle.cs
- ListItemViewAttribute.cs
- ReadContentAsBinaryHelper.cs
- MachineKeyValidationConverter.cs
- DataGridViewCellParsingEventArgs.cs
- UInt64.cs
- XmlSchemas.cs
- ProcessStartInfo.cs
- OverlappedAsyncResult.cs
- DataGridViewAccessibleObject.cs
- RegexMatch.cs
- SocketElement.cs
- HttpModule.cs
- PhonemeEventArgs.cs
- XLinq.cs
- SqlDataSourceCommandEventArgs.cs
- PropertyBuilder.cs
- FolderLevelBuildProviderCollection.cs
- baseshape.cs
- LocalBuilder.cs
- TextSpan.cs
- KnownTypeHelper.cs
- _HTTPDateParse.cs
- XmlSignificantWhitespace.cs
- IDispatchConstantAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- _PooledStream.cs
- ContentWrapperAttribute.cs
- UICuesEvent.cs
- FunctionNode.cs
- BuildProviderCollection.cs
- SerializationHelper.cs
- RadioButton.cs
- M3DUtil.cs
- FixedFlowMap.cs
- ResourceAssociationSet.cs
- URI.cs
- MsmqHostedTransportConfiguration.cs
- MemberListBinding.cs
- EnvironmentPermission.cs
- KeyNotFoundException.cs
- ContentValidator.cs
- QueryCursorEventArgs.cs
- DecoderFallback.cs
- DeviceContexts.cs
- TypedReference.cs
- BatchStream.cs
- DataPager.cs
- XhtmlConformanceSection.cs
- SqlNodeTypeOperators.cs
- JavaScriptSerializer.cs
- ToolStripMenuItemDesigner.cs
- HtmlTableCell.cs
- DatatypeImplementation.cs
- RecordBuilder.cs
- VirtualPath.cs
- ExceptionRoutedEventArgs.cs
- CodeTypeOfExpression.cs
- sqlinternaltransaction.cs
- SqlCacheDependencySection.cs
- HwndKeyboardInputProvider.cs
- AuthenticodeSignatureInformation.cs
- SafeTimerHandle.cs
- EntityDataSourceChangingEventArgs.cs
- ListSourceHelper.cs
- HttpApplicationStateWrapper.cs
- ReadOnlyDataSourceView.cs
- SerTrace.cs
- PositiveTimeSpanValidatorAttribute.cs
- SignatureConfirmationElement.cs
- RelOps.cs
- DataPagerFieldItem.cs
- GenericsNotImplementedException.cs
- OleDbStruct.cs