Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NamespaceList.cs
- ImmutableAssemblyCacheEntry.cs
- StdValidatorsAndConverters.cs
- FeatureSupport.cs
- Nullable.cs
- NativeCompoundFileAPIs.cs
- IsolationInterop.cs
- ReliableOutputSessionChannel.cs
- ResourceContainer.cs
- BitmapPalettes.cs
- AllowedAudienceUriElement.cs
- PipeException.cs
- TimeSpanStorage.cs
- MouseDevice.cs
- AssemblyBuilder.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CmsInterop.cs
- LinqDataSourceInsertEventArgs.cs
- ContentTextAutomationPeer.cs
- ModifiableIteratorCollection.cs
- MouseEventArgs.cs
- XLinq.cs
- XhtmlMobileTextWriter.cs
- SslStream.cs
- EventlogProvider.cs
- TextTreePropertyUndoUnit.cs
- _LocalDataStoreMgr.cs
- PersianCalendar.cs
- HMACSHA512.cs
- ScrollItemPattern.cs
- ResourceDescriptionAttribute.cs
- Int16Converter.cs
- RequestCachePolicy.cs
- XmlSchema.cs
- ConstNode.cs
- HighContrastHelper.cs
- Menu.cs
- SecurityContextSecurityTokenResolver.cs
- Vector3D.cs
- AxWrapperGen.cs
- SweepDirectionValidation.cs
- StrokeNodeData.cs
- LinqDataSourceUpdateEventArgs.cs
- UnsafeCollabNativeMethods.cs
- StringExpressionSet.cs
- AsyncPostBackErrorEventArgs.cs
- WebHeaderCollection.cs
- FloatMinMaxAggregationOperator.cs
- XsltCompileContext.cs
- PrimaryKeyTypeConverter.cs
- ServiceDocument.cs
- WSFederationHttpBindingElement.cs
- IPAddress.cs
- CharacterHit.cs
- EventDescriptorCollection.cs
- filewebrequest.cs
- RawStylusInputCustomDataList.cs
- SemanticAnalyzer.cs
- FormsAuthenticationEventArgs.cs
- LogSwitch.cs
- ExtenderProvidedPropertyAttribute.cs
- DefaultEvaluationContext.cs
- Int16Converter.cs
- PenContext.cs
- IncrementalReadDecoders.cs
- SignedInfo.cs
- ApplicationId.cs
- TreeNodeBinding.cs
- SQLSingleStorage.cs
- SupportsPreviewControlAttribute.cs
- FaultReasonText.cs
- HelpProvider.cs
- EditorZoneBase.cs
- XmlValidatingReaderImpl.cs
- X509Chain.cs
- DynamicResourceExtensionConverter.cs
- SiteIdentityPermission.cs
- HttpHandlerAction.cs
- MessagePartDescription.cs
- SHA1CryptoServiceProvider.cs
- OleAutBinder.cs
- RichTextBoxConstants.cs
- Subset.cs
- TemplateInstanceAttribute.cs
- TraceProvider.cs
- BindingManagerDataErrorEventArgs.cs
- WebPartConnectionCollection.cs
- TerminateDesigner.cs
- ControlEvent.cs
- ListBoxItem.cs
- ValueUnavailableException.cs
- MessageBox.cs
- JoinTreeNode.cs
- lengthconverter.cs
- SecurityBindingElement.cs
- MethodCallTranslator.cs
- SemanticResultKey.cs
- DataBindingCollection.cs
- OdbcConnectionStringbuilder.cs
- PromptStyle.cs