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
- WinFormsSecurity.cs
- WasAdminWrapper.cs
- TemplateBaseAction.cs
- DecodeHelper.cs
- UnionExpr.cs
- FlagsAttribute.cs
- InfiniteIntConverter.cs
- HtmlInputSubmit.cs
- FlowDocumentPaginator.cs
- MimePart.cs
- MaskedTextBox.cs
- Solver.cs
- util.cs
- MsmqSecureHashAlgorithm.cs
- FixedTextPointer.cs
- UrlParameterReader.cs
- FileDialogCustomPlace.cs
- TypeHelper.cs
- FileNotFoundException.cs
- ConnectionPoint.cs
- Figure.cs
- StructuredTypeEmitter.cs
- ActivationArguments.cs
- KeyboardEventArgs.cs
- GrammarBuilderDictation.cs
- SelectedGridItemChangedEvent.cs
- MarkupCompilePass1.cs
- RetrieveVirtualItemEventArgs.cs
- TextServicesContext.cs
- CodeGen.cs
- DBSchemaTable.cs
- WebBrowserContainer.cs
- TableLayoutSettingsTypeConverter.cs
- errorpatternmatcher.cs
- TemplateInstanceAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlText.cs
- DiscoveryClientBindingElement.cs
- ParseNumbers.cs
- XmlElement.cs
- LoginCancelEventArgs.cs
- ErrorCodes.cs
- SemanticKeyElement.cs
- DynamicDocumentPaginator.cs
- SQlBooleanStorage.cs
- TypeUsage.cs
- DbConnectionPoolIdentity.cs
- TopClause.cs
- SqlConnection.cs
- FixedHyperLink.cs
- FixedFindEngine.cs
- FindCriteria11.cs
- DataBoundControlAdapter.cs
- ComponentDispatcher.cs
- TypePropertyEditor.cs
- BufferedStream.cs
- _HelperAsyncResults.cs
- SignatureDescription.cs
- PrintDialog.cs
- DtdParser.cs
- cookie.cs
- ValidationSummary.cs
- ActiveXContainer.cs
- TreeNodeBindingCollection.cs
- TransactionScope.cs
- TableRow.cs
- StylusButtonCollection.cs
- SudsParser.cs
- SqlPersonalizationProvider.cs
- GregorianCalendar.cs
- WaitHandleCannotBeOpenedException.cs
- Attributes.cs
- XslUrlEditor.cs
- ToolStripItemEventArgs.cs
- EntityProviderFactory.cs
- RijndaelManaged.cs
- IntegerValidator.cs
- SqlSelectClauseBuilder.cs
- MethodCallConverter.cs
- Int16Animation.cs
- QilInvokeEarlyBound.cs
- CoreChannel.cs
- Bezier.cs
- MultiSelectRootGridEntry.cs
- WSHttpSecurityElement.cs
- MailDefinition.cs
- CounterCreationDataCollection.cs
- CircleHotSpot.cs
- ReadWriteControlDesigner.cs
- MultiSelectRootGridEntry.cs
- ProxyWebPartManager.cs
- storagemappingitemcollection.viewdictionary.cs
- DesignerDataColumn.cs
- CoreSwitches.cs
- ManagedFilter.cs
- QuaternionIndependentAnimationStorage.cs
- ConfigUtil.cs
- InputBinding.cs
- ErrorRuntimeConfig.cs
- SqlConnectionString.cs