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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeFileMappingHandle.cs
- DbConnectionPoolOptions.cs
- UserControl.cs
- ReferenceConverter.cs
- Accessors.cs
- AdjustableArrowCap.cs
- ChannelSinkStacks.cs
- SerializationStore.cs
- PersonalizationProviderCollection.cs
- RemoteX509AsymmetricSecurityKey.cs
- Timeline.cs
- SmtpFailedRecipientsException.cs
- NamespaceDecl.cs
- CryptographicAttribute.cs
- ToolStrip.cs
- MultitargetUtil.cs
- Rules.cs
- DataGridTable.cs
- DescriptionAttribute.cs
- ParameterToken.cs
- ContentOperations.cs
- InputReferenceExpression.cs
- GridViewCancelEditEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- oledbmetadatacolumnnames.cs
- OleDbPermission.cs
- InvokeGenerator.cs
- _ConnectOverlappedAsyncResult.cs
- WebPartsPersonalization.cs
- BitmapEffectInputConnector.cs
- OdbcError.cs
- BuildDependencySet.cs
- XmlSchemaSimpleTypeRestriction.cs
- ComponentGlyph.cs
- MachineKeySection.cs
- _OverlappedAsyncResult.cs
- UnsafeNativeMethodsTablet.cs
- ColorAnimation.cs
- ZoneButton.cs
- BamlRecordReader.cs
- ScriptBehaviorDescriptor.cs
- ProfilePropertyNameValidator.cs
- HijriCalendar.cs
- HwndHost.cs
- AutomationPeer.cs
- xamlnodes.cs
- TextContainer.cs
- TemplateBindingExpressionConverter.cs
- RequestResizeEvent.cs
- XmlSecureResolver.cs
- CompiledRegexRunnerFactory.cs
- GetIndexBinder.cs
- GroupBox.cs
- Propagator.cs
- SerialErrors.cs
- Win32Exception.cs
- StateChangeEvent.cs
- SafeCoTaskMem.cs
- EmissiveMaterial.cs
- AutomationPropertyChangedEventArgs.cs
- WebRequestModulesSection.cs
- SelectionProviderWrapper.cs
- DetailsViewUpdateEventArgs.cs
- ListItemCollection.cs
- SystemWebCachingSectionGroup.cs
- DataGridCellInfo.cs
- BaseTypeViewSchema.cs
- DependencyPropertyHelper.cs
- ArgIterator.cs
- SingletonConnectionReader.cs
- ClientConfigurationSystem.cs
- SqlClientPermission.cs
- Transactions.cs
- FunctionDefinition.cs
- Binding.cs
- ChooseAction.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Events.cs
- SpotLight.cs
- EntityContainerEmitter.cs
- WebPartZone.cs
- validationstate.cs
- CLRBindingWorker.cs
- XmlSchemas.cs
- SequentialOutput.cs
- X509Logo.cs
- XmlSubtreeReader.cs
- BitmapCodecInfoInternal.cs
- WebBrowsableAttribute.cs
- XmlArrayItemAttributes.cs
- DebugManager.cs
- ClientBuildManagerCallback.cs
- ExceptionUtil.cs
- TdsParserSafeHandles.cs
- NavigationExpr.cs
- DataListItem.cs
- PropertyInfoSet.cs
- TargetConverter.cs
- ProjectionPruner.cs
- CompilationUnit.cs