Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / System / Windows / Converters / Generated / Int32RectValueSerializer.cs / 1 / 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, 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.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, 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
- HelpPage.cs
- TraceContext.cs
- AlternateViewCollection.cs
- MouseActionValueSerializer.cs
- UniqueConstraint.cs
- PrincipalPermission.cs
- StrokeNodeOperations.cs
- ConfigUtil.cs
- SqlDependencyListener.cs
- Missing.cs
- CaseInsensitiveComparer.cs
- LostFocusEventManager.cs
- MediaContext.cs
- TextRangeEdit.cs
- ConfigViewGenerator.cs
- QuestionEventArgs.cs
- SQLSingleStorage.cs
- Function.cs
- IdnMapping.cs
- TableSectionStyle.cs
- SiteMapNodeCollection.cs
- Thickness.cs
- OleDbStruct.cs
- SkipQueryOptionExpression.cs
- ResourceDictionary.cs
- StringStorage.cs
- WebEncodingValidatorAttribute.cs
- AppSettingsExpressionBuilder.cs
- ClientSettingsProvider.cs
- MessageQueue.cs
- ImageClickEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- HtmlValidationSummaryAdapter.cs
- ThreadTrace.cs
- ConsoleCancelEventArgs.cs
- ToolStripGrip.cs
- ObjectListFieldsPage.cs
- IndicCharClassifier.cs
- Rotation3DAnimationUsingKeyFrames.cs
- WebPartsPersonalization.cs
- _UncName.cs
- DebugTrace.cs
- TextWriter.cs
- InkCanvasSelectionAdorner.cs
- VectorAnimationUsingKeyFrames.cs
- ZoneIdentityPermission.cs
- DrawTreeNodeEventArgs.cs
- RectAnimationBase.cs
- ItemContainerGenerator.cs
- LineMetrics.cs
- GenericAuthenticationEventArgs.cs
- NavigationProgressEventArgs.cs
- StringKeyFrameCollection.cs
- WindowsListViewSubItem.cs
- CookieParameter.cs
- ConsumerConnectionPoint.cs
- DbConnectionFactory.cs
- ConfigurationPermission.cs
- Faults.cs
- PreservationFileReader.cs
- RijndaelManaged.cs
- PageBuildProvider.cs
- PocoEntityKeyStrategy.cs
- SkinIDTypeConverter.cs
- documentsequencetextview.cs
- ParagraphVisual.cs
- Array.cs
- CellIdBoolean.cs
- ArcSegment.cs
- Selector.cs
- VScrollBar.cs
- Cursor.cs
- DeferredTextReference.cs
- filewebrequest.cs
- GreenMethods.cs
- OdbcEnvironment.cs
- WebServiceData.cs
- StoreContentChangedEventArgs.cs
- XmlLanguage.cs
- QueryComponents.cs
- SimpleTypeResolver.cs
- WeakReferenceKey.cs
- PagedDataSource.cs
- ListViewItemMouseHoverEvent.cs
- PagesSection.cs
- SerializationInfo.cs
- DataQuery.cs
- UniformGrid.cs
- SiteMembershipCondition.cs
- ServiceCredentialsElement.cs
- FixedPage.cs
- RbTree.cs
- OpenFileDialog.cs
- Sequence.cs
- DoubleLinkList.cs
- EventHandlersStore.cs
- EnumBuilder.cs
- CatalogZone.cs
- ImageDrawing.cs
- WebConfigurationHostFileChange.cs