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
- HeaderUtility.cs
- HttpListenerException.cs
- MetadataCache.cs
- ObjectSet.cs
- DbConnectionPoolOptions.cs
- TimeIntervalCollection.cs
- UrlAuthorizationModule.cs
- TypeBuilder.cs
- DataBoundControlHelper.cs
- odbcmetadatacolumnnames.cs
- ValidatorCollection.cs
- ActiveXSite.cs
- WebPartTransformer.cs
- PartialCachingAttribute.cs
- StringConverter.cs
- Vector3DIndependentAnimationStorage.cs
- ValueExpressions.cs
- SapiAttributeParser.cs
- DistributedTransactionPermission.cs
- CanonicalXml.cs
- SerializationException.cs
- FileDialogCustomPlace.cs
- CurrentChangedEventManager.cs
- AspNetSynchronizationContext.cs
- TextServicesLoader.cs
- ForwardPositionQuery.cs
- Point3DKeyFrameCollection.cs
- EventBuilder.cs
- SpellerError.cs
- ExpressionBuilderCollection.cs
- BinHexEncoder.cs
- UnsafeNativeMethods.cs
- BulletedListDesigner.cs
- ISessionStateStore.cs
- InvokeMethod.cs
- BamlRecords.cs
- OutputCache.cs
- HttpDictionary.cs
- XamlInt32CollectionSerializer.cs
- UInt16Converter.cs
- X509CertificateTrustedIssuerElement.cs
- TextPenaltyModule.cs
- ListSortDescriptionCollection.cs
- AdRotator.cs
- SimplePropertyEntry.cs
- BaseTemplateParser.cs
- WebOperationContext.cs
- Choices.cs
- DefaultMemberAttribute.cs
- NativeMethods.cs
- ExpressionBinding.cs
- SqlBuilder.cs
- Stackframe.cs
- DodSequenceMerge.cs
- HierarchicalDataSourceIDConverter.cs
- DataSourceGeneratorException.cs
- Icon.cs
- TableProviderWrapper.cs
- TypeUnloadedException.cs
- XmlDictionaryReaderQuotas.cs
- SingleBodyParameterMessageFormatter.cs
- EdgeModeValidation.cs
- PageEventArgs.cs
- TokenDescriptor.cs
- SQLDateTimeStorage.cs
- SimpleBitVector32.cs
- Internal.cs
- GenericsInstances.cs
- CheckPair.cs
- WindowsImpersonationContext.cs
- RuntimeEnvironment.cs
- ConnectionPointCookie.cs
- SessionEndedEventArgs.cs
- SqlDataSourceCustomCommandPanel.cs
- StateDesigner.Layouts.cs
- SecurityUniqueId.cs
- FamilyTypeface.cs
- Separator.cs
- GeneralTransformGroup.cs
- dsa.cs
- XmlSchemaValidationException.cs
- ParenthesizePropertyNameAttribute.cs
- BaseTransportHeaders.cs
- XmlSchemaComplexContent.cs
- HiddenField.cs
- FileCodeGroup.cs
- ByteKeyFrameCollection.cs
- TypeProvider.cs
- GeneralTransform3D.cs
- UriScheme.cs
- Model3DCollection.cs
- StaticExtensionConverter.cs
- ExpressionList.cs
- ComplexObject.cs
- EditorBrowsableAttribute.cs
- Propagator.ExtentPlaceholderCreator.cs
- ReferencedCollectionType.cs
- DecoderReplacementFallback.cs
- VisualStateChangedEventArgs.cs
- HtmlTableRowCollection.cs