Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Markup / XamlPathDataSerializer.cs / 1 / 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IRCollection.cs
- SHA512.cs
- HostProtectionException.cs
- RayHitTestParameters.cs
- FontDriver.cs
- ContextMarshalException.cs
- DbProviderFactories.cs
- EventLogEntryCollection.cs
- FusionWrap.cs
- RegexRunner.cs
- TextProperties.cs
- TcpProcessProtocolHandler.cs
- XmlReaderSettings.cs
- AsyncPostBackTrigger.cs
- SqlDependency.cs
- BinaryObjectInfo.cs
- BitmapEffectInputConnector.cs
- StyleXamlTreeBuilder.cs
- RenderingEventArgs.cs
- SQLMembershipProvider.cs
- BulletedListEventArgs.cs
- GeneralTransformGroup.cs
- ExcCanonicalXml.cs
- LinkedList.cs
- Operators.cs
- RoleGroup.cs
- ChannelOptions.cs
- FrameworkContentElementAutomationPeer.cs
- CapabilitiesPattern.cs
- TextStore.cs
- CodeIdentifier.cs
- ImageAttributes.cs
- ViewPort3D.cs
- IChannel.cs
- XslAstAnalyzer.cs
- DefinitionUpdate.cs
- TextChange.cs
- Attributes.cs
- ClientScriptManager.cs
- NavigationProperty.cs
- DocumentEventArgs.cs
- ServiceParser.cs
- HandlerWithFactory.cs
- SrgsSemanticInterpretationTag.cs
- ValueProviderWrapper.cs
- Rules.cs
- ScrollBar.cs
- GeometryHitTestResult.cs
- Calendar.cs
- SelectionProcessor.cs
- ExpressionBuilderContext.cs
- SelectiveScrollingGrid.cs
- ListControl.cs
- ScrollBarRenderer.cs
- ExpressionParser.cs
- Run.cs
- ConnectionPoint.cs
- DataBindingHandlerAttribute.cs
- TraceHelpers.cs
- XamlDesignerSerializationManager.cs
- CompilationUtil.cs
- BaseCollection.cs
- DropDownList.cs
- HttpDebugHandler.cs
- WorkflowOwnershipException.cs
- TableLayoutStyleCollection.cs
- XamlInt32CollectionSerializer.cs
- RequestCache.cs
- TokenizerHelper.cs
- NominalTypeEliminator.cs
- SqlInternalConnectionSmi.cs
- MSHTMLHost.cs
- DWriteFactory.cs
- StorageMappingItemCollection.cs
- KerberosSecurityTokenProvider.cs
- XmlILStorageConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- SafeEventLogReadHandle.cs
- Set.cs
- WebPartTransformerAttribute.cs
- XmlDataCollection.cs
- DropShadowEffect.cs
- PropertyDescriptorGridEntry.cs
- SoapTypeAttribute.cs
- ListViewGroup.cs
- BindingWorker.cs
- MultipleViewProviderWrapper.cs
- StylusEditingBehavior.cs
- WebServiceResponse.cs
- AbstractSvcMapFileLoader.cs
- CodeStatementCollection.cs
- XmlDataContract.cs
- XmlQueryTypeFactory.cs
- RoleGroup.cs
- HtmlTableRow.cs
- QilTernary.cs
- Separator.cs
- UnknownMessageReceivedEventArgs.cs
- OdbcStatementHandle.cs
- QueuePathEditor.cs