Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / PointCollection.cs / 1 / PointCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Point collection partial class. // // // History: // 11/09/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media { public partial class PointCollection { ////// Deserialize this object from BAML /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; PointCollection collection = new PointCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point point = new Point( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // 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: Point collection partial class. // // // History: // 11/09/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media { public partial class PointCollection { ////// Deserialize this object from BAML /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; PointCollection collection = new PointCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point point = new Point( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // 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
- MouseButtonEventArgs.cs
- XdrBuilder.cs
- DocumentStream.cs
- BaseHashHelper.cs
- DatatypeImplementation.cs
- CharAnimationUsingKeyFrames.cs
- DeclarativeCatalogPartDesigner.cs
- ComponentResourceKeyConverter.cs
- HtmlFormAdapter.cs
- Mappings.cs
- SiteMapNodeCollection.cs
- ClientFormsIdentity.cs
- dtdvalidator.cs
- ExceptionUtil.cs
- GroupPartitionExpr.cs
- XmlResolver.cs
- ActivityPreviewDesigner.cs
- DataGridAddNewRow.cs
- CodeNamespaceImport.cs
- ThrowHelper.cs
- WbemException.cs
- PathGeometry.cs
- TypeHelpers.cs
- DecoderExceptionFallback.cs
- SqlFlattener.cs
- TextRunCache.cs
- DataRowChangeEvent.cs
- Wizard.cs
- FormatConvertedBitmap.cs
- SchemaExporter.cs
- AxWrapperGen.cs
- GroupAggregateExpr.cs
- PropertyValueUIItem.cs
- arc.cs
- SqlTrackingQuery.cs
- WebPartTracker.cs
- InkCanvasSelectionAdorner.cs
- TableLayoutRowStyleCollection.cs
- xsdvalidator.cs
- EnumMemberAttribute.cs
- IntegerValidator.cs
- DBCSCodePageEncoding.cs
- SQLChars.cs
- PersonalizationStateInfo.cs
- XPathNodeList.cs
- InputLanguage.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HTMLTextWriter.cs
- PublisherMembershipCondition.cs
- HtmlGenericControl.cs
- SqlAggregateChecker.cs
- ContainerCodeDomSerializer.cs
- MemoryMappedFile.cs
- DrawingServices.cs
- EntityDataSourceSelectingEventArgs.cs
- ParsedAttributeCollection.cs
- UpDownEvent.cs
- HWStack.cs
- CodeSnippetExpression.cs
- FrameSecurityDescriptor.cs
- DrawingContextWalker.cs
- ProfileProvider.cs
- ContentFileHelper.cs
- EntityWithChangeTrackerStrategy.cs
- MouseGesture.cs
- DecodeHelper.cs
- HttpGetClientProtocol.cs
- HtmlHistory.cs
- ServicesUtilities.cs
- ModifiableIteratorCollection.cs
- FixedNode.cs
- XmlDataProvider.cs
- AppSettingsExpressionBuilder.cs
- DrawTreeNodeEventArgs.cs
- XmlName.cs
- WebPartUtil.cs
- PropertyPath.cs
- UpdateException.cs
- ConnectivityStatus.cs
- AnnotationResource.cs
- ResourceWriter.cs
- ImageIndexConverter.cs
- RuntimeEnvironment.cs
- ProcessThreadCollection.cs
- ColorContextHelper.cs
- TextEditorSelection.cs
- XmlWriterDelegator.cs
- SpecialTypeDataContract.cs
- TryCatchDesigner.xaml.cs
- RedirectionProxy.cs
- TextTreeRootNode.cs
- EventSetter.cs
- XslException.cs
- XsltFunctions.cs
- QilGenerator.cs
- FragmentNavigationEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- HotCommands.cs
- InputMethod.cs
- CompiledScopeCriteria.cs