Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / XamlPathDataSerializer.cs / 1305600 / XamlPathDataSerializer.cs
//// Copyright (C) Microsoft Corporation. All rights reserved. // // Description: // XamlSerializer used to persist path data into Baml. // using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.IO; using System.Xml; using MS.Utility; using MS.Internal; #if PBTCOMPILER using System.Reflection; using System.Collections.Generic; namespace MS.Internal.Markup #else using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.Media; namespace System.Windows.Markup #endif { ////// XamlPathDataSerializer is used to persist collections of integer indices in Baml /// internal class XamlPathDataSerializer : XamlSerializer { #region Construction ////// Constructor for XamlPathDataSerializer /// public XamlPathDataSerializer() { } #endregion Construction ////// Convert a string into a compact binary representation and write it out /// to the passed BinaryWriter. /// public override bool ConvertStringToCustomBinary ( BinaryWriter writer, // Writer into the baml stream string stringValue) // String to convert { Parsers.PathMinilanguageToBinary( writer, stringValue ) ; return true; } #if !PBTCOMPILER ////// Convert a compact binary representation of a collection /// into a Point3DCollection into and instance /// ////// This is called ONLY from the Parser and is not a general public method. /// public override object ConvertCustomBinaryToObject( BinaryReader reader) { return Parsers.DeserializeStreamGeometry( reader ); } ////// Convert a compact binary representation of a collection /// into a Point3DCollection into and instance /// ////// This is called ONLY from the Parser and is not a general public method. /// public static object StaticConvertCustomBinaryToObject( BinaryReader reader) { return Parsers.DeserializeStreamGeometry( reader ); } #endif } } // 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. // // Description: // XamlSerializer used to persist path data into Baml. // using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.IO; using System.Xml; using MS.Utility; using MS.Internal; #if PBTCOMPILER using System.Reflection; using System.Collections.Generic; namespace MS.Internal.Markup #else using System.Windows; using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.Media; namespace System.Windows.Markup #endif { ////// XamlPathDataSerializer is used to persist collections of integer indices in Baml /// internal class XamlPathDataSerializer : XamlSerializer { #region Construction ////// Constructor for XamlPathDataSerializer /// public XamlPathDataSerializer() { } #endregion Construction ////// Convert a string into a compact binary representation and write it out /// to the passed BinaryWriter. /// public override bool ConvertStringToCustomBinary ( BinaryWriter writer, // Writer into the baml stream string stringValue) // String to convert { Parsers.PathMinilanguageToBinary( writer, stringValue ) ; return true; } #if !PBTCOMPILER ////// Convert a compact binary representation of a collection /// into a Point3DCollection into and instance /// ////// This is called ONLY from the Parser and is not a general public method. /// public override object ConvertCustomBinaryToObject( BinaryReader reader) { return Parsers.DeserializeStreamGeometry( reader ); } ////// Convert a compact binary representation of a collection /// into a Point3DCollection into and instance /// ////// This is called ONLY from the Parser and is not a general public method. /// public static object StaticConvertCustomBinaryToObject( BinaryReader reader) { return Parsers.DeserializeStreamGeometry( reader ); } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Size3D.cs
- PasswordDeriveBytes.cs
- XsdBuilder.cs
- ProcessHostServerConfig.cs
- externdll.cs
- SqlUserDefinedAggregateAttribute.cs
- ReadOnlyTernaryTree.cs
- WebPartAuthorizationEventArgs.cs
- ProcessManager.cs
- _ListenerResponseStream.cs
- HandlerBase.cs
- DataServiceConfiguration.cs
- ReaderContextStackData.cs
- AttachmentCollection.cs
- MaterialCollection.cs
- DataException.cs
- EnumerableRowCollection.cs
- BuildManagerHost.cs
- XNodeValidator.cs
- _NegoState.cs
- CheckBoxBaseAdapter.cs
- SqlDataSourceStatusEventArgs.cs
- ListViewContainer.cs
- ToolStripItemEventArgs.cs
- NotFiniteNumberException.cs
- SimpleWebHandlerParser.cs
- FilterQueryOptionExpression.cs
- AnchorEditor.cs
- HttpRequestContext.cs
- QilExpression.cs
- Currency.cs
- XmlSchemaDatatype.cs
- EventMap.cs
- OleDbTransaction.cs
- PageParserFilter.cs
- QilNode.cs
- RuntimeResourceSet.cs
- WebMessageEncodingBindingElement.cs
- oledbmetadatacollectionnames.cs
- ThicknessAnimation.cs
- VariantWrapper.cs
- DataRelationPropertyDescriptor.cs
- URLMembershipCondition.cs
- RegexParser.cs
- CorrelationValidator.cs
- EntityWrapperFactory.cs
- ToolBar.cs
- StringFunctions.cs
- StaticDataManager.cs
- CorruptStoreException.cs
- CellTreeNodeVisitors.cs
- VisualStyleTypesAndProperties.cs
- TraversalRequest.cs
- CursorConverter.cs
- DataGridRelationshipRow.cs
- ImmutableClientRuntime.cs
- StylusPointPropertyUnit.cs
- ThicknessAnimation.cs
- CodeLinePragma.cs
- CapacityStreamGeometryContext.cs
- NameValuePermission.cs
- LayoutDump.cs
- FormsAuthenticationUser.cs
- AQNBuilder.cs
- WorkflowServiceBuildProvider.cs
- SkewTransform.cs
- ModuleBuilderData.cs
- TextControl.cs
- SingleObjectCollection.cs
- ImageSourceTypeConverter.cs
- MessageVersionConverter.cs
- EntityModelSchemaGenerator.cs
- BufferedWebEventProvider.cs
- RegisteredDisposeScript.cs
- MsmqIntegrationOutputChannel.cs
- ConnectionOrientedTransportBindingElement.cs
- BooleanToVisibilityConverter.cs
- DbConnectionPoolOptions.cs
- FixedFindEngine.cs
- RayHitTestParameters.cs
- FreezableCollection.cs
- DataDocumentXPathNavigator.cs
- WebBrowserProgressChangedEventHandler.cs
- TransformBlockRequest.cs
- HostUtils.cs
- SafeBitVector32.cs
- DataPager.cs
- ReadOnlyHierarchicalDataSource.cs
- DataBindingCollectionConverter.cs
- EventLogPermissionAttribute.cs
- EntityProviderServices.cs
- LayoutExceptionEventArgs.cs
- WindowShowOrOpenTracker.cs
- PointHitTestParameters.cs
- BitmapFrameEncode.cs
- SrgsDocument.cs
- ExpressionBindings.cs
- AttachmentService.cs
- OrthographicCamera.cs
- base64Transforms.cs