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
- HttpWebRequestElement.cs
- BitArray.cs
- WorkflowViewService.cs
- EnvironmentPermission.cs
- SettingsPropertyCollection.cs
- SymLanguageType.cs
- DesignTimeParseData.cs
- PolicyLevel.cs
- ResourceDisplayNameAttribute.cs
- TextEmbeddedObject.cs
- _SingleItemRequestCache.cs
- WindowsStartMenu.cs
- UnionQueryOperator.cs
- HtmlEmptyTagControlBuilder.cs
- SqlMethodAttribute.cs
- WhitespaceRuleReader.cs
- MemoryRecordBuffer.cs
- ValueTypeFixupInfo.cs
- NameTable.cs
- EntityDataSourceState.cs
- PasswordDeriveBytes.cs
- ClientSettingsStore.cs
- UiaCoreApi.cs
- EncoderExceptionFallback.cs
- LoginView.cs
- BrowserDefinitionCollection.cs
- WebReferencesBuildProvider.cs
- DrawingAttributes.cs
- CountAggregationOperator.cs
- ConstantProjectedSlot.cs
- SqlRecordBuffer.cs
- Animatable.cs
- DataServiceHostFactory.cs
- KnownAssembliesSet.cs
- Size.cs
- TranslateTransform.cs
- XmlArrayItemAttribute.cs
- SectionRecord.cs
- HtmlGenericControl.cs
- ECDiffieHellmanCng.cs
- DictionaryBase.cs
- CodeAttributeArgumentCollection.cs
- TransformerInfoCollection.cs
- UIElement3D.cs
- ToolZoneDesigner.cs
- XmlSchemaNotation.cs
- SqlProcedureAttribute.cs
- BufferBuilder.cs
- Delegate.cs
- NetDataContractSerializer.cs
- Globals.cs
- PageThemeParser.cs
- IpcServerChannel.cs
- MobilePage.cs
- FormsAuthenticationUserCollection.cs
- GridViewCommandEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- EntityDataSourceState.cs
- FilterQuery.cs
- BitmapEffectInputData.cs
- Operator.cs
- MaterialCollection.cs
- XmlSortKey.cs
- TransactionScope.cs
- UserMapPath.cs
- BoundColumn.cs
- ListControl.cs
- IResourceProvider.cs
- TraceContextRecord.cs
- RuleAttributes.cs
- UserNameSecurityTokenAuthenticator.cs
- TextBlockAutomationPeer.cs
- AttributeData.cs
- ZipIOExtraFieldPaddingElement.cs
- TabletDeviceInfo.cs
- DataKey.cs
- ValidateNames.cs
- TransformPatternIdentifiers.cs
- ClientBuildManagerCallback.cs
- x509utils.cs
- EncryptedKey.cs
- ObjectToIdCache.cs
- CqlGenerator.cs
- CodeTypeReferenceCollection.cs
- Int32Storage.cs
- mactripleDES.cs
- SqlTopReducer.cs
- Error.cs
- OleDbInfoMessageEvent.cs
- InputLanguageProfileNotifySink.cs
- arabicshape.cs
- _IPv4Address.cs
- EntityEntry.cs
- Rule.cs
- JsonEnumDataContract.cs
- EmulateRecognizeCompletedEventArgs.cs
- _ConnectionGroup.cs
- CellIdBoolean.cs
- SignedInfo.cs
- FullTextLine.cs