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
- HtmlImage.cs
- AssertUtility.cs
- GraphicsPathIterator.cs
- ApplicationSettingsBase.cs
- CaseKeyBox.ViewModel.cs
- ValueUtilsSmi.cs
- InternalSafeNativeMethods.cs
- TCPListener.cs
- BasicDesignerLoader.cs
- ValueUtilsSmi.cs
- MDIControlStrip.cs
- MessageQueuePermission.cs
- DescendantOverDescendantQuery.cs
- UrlPath.cs
- SHA1CryptoServiceProvider.cs
- DataSourceView.cs
- RegexGroupCollection.cs
- IntegerCollectionEditor.cs
- ApplicationException.cs
- StorageEntitySetMapping.cs
- ToolbarAUtomationPeer.cs
- NumericUpDownAccelerationCollection.cs
- Trustee.cs
- infer.cs
- SecurityContextSecurityTokenParameters.cs
- DataBindingsDialog.cs
- DataGridTableCollection.cs
- CoreSwitches.cs
- XsdValidatingReader.cs
- VersionPair.cs
- TemplateXamlParser.cs
- ToolStripContentPanel.cs
- MetadataArtifactLoader.cs
- ToolStripStatusLabel.cs
- DataFormats.cs
- ConnectionManagementSection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PropertyGridEditorPart.cs
- PartDesigner.cs
- ScheduleChanges.cs
- DataContractSerializer.cs
- TypeBuilderInstantiation.cs
- WebPartsSection.cs
- XmlCharCheckingReader.cs
- OverrideMode.cs
- TypeInfo.cs
- TextBoxBase.cs
- ToolStripContentPanelRenderEventArgs.cs
- ParsedAttributeCollection.cs
- _UriSyntax.cs
- ComponentResourceKey.cs
- Label.cs
- SectionInformation.cs
- StoryFragments.cs
- CustomTrackingQuery.cs
- ModuleConfigurationInfo.cs
- RequestCache.cs
- LifetimeServices.cs
- IUnknownConstantAttribute.cs
- LayoutSettings.cs
- TreeNodeClickEventArgs.cs
- XmlNodeChangedEventManager.cs
- ProfilePropertySettings.cs
- ImageClickEventArgs.cs
- DiscoveryDefaults.cs
- StylusCollection.cs
- InheritanceUI.cs
- MetadataItem_Static.cs
- PhysicalFontFamily.cs
- CultureInfoConverter.cs
- TextSelectionHelper.cs
- ImmComposition.cs
- ClaimComparer.cs
- SafeCryptContextHandle.cs
- WebPartAuthorizationEventArgs.cs
- altserialization.cs
- StreamingContext.cs
- StaticExtension.cs
- versioninfo.cs
- AutomationInteropProvider.cs
- MouseActionValueSerializer.cs
- FormParameter.cs
- GeneralTransform3DCollection.cs
- BitmapScalingModeValidation.cs
- NaturalLanguageHyphenator.cs
- CodeNamespace.cs
- ObjectDataSourceDisposingEventArgs.cs
- OciLobLocator.cs
- ConsoleEntryPoint.cs
- MenuItem.cs
- JsonReaderDelegator.cs
- __FastResourceComparer.cs
- COMException.cs
- MatrixIndependentAnimationStorage.cs
- ReaderWriterLock.cs
- FullTextBreakpoint.cs
- ClientBuildManager.cs
- StrongNameMembershipCondition.cs
- EnumMemberAttribute.cs
- DesignerContextDescriptor.cs