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
- WorkItem.cs
- PickDesigner.xaml.cs
- DataServiceProcessingPipelineEventArgs.cs
- XsdDateTime.cs
- DeploymentExceptionMapper.cs
- _LocalDataStoreMgr.cs
- XmlResolver.cs
- Rect3D.cs
- Privilege.cs
- MapPathBasedVirtualPathProvider.cs
- Size3DValueSerializer.cs
- AssertSection.cs
- ProcessHostServerConfig.cs
- LinqDataSourceUpdateEventArgs.cs
- ExclusiveHandleList.cs
- NonBatchDirectoryCompiler.cs
- UdpDiscoveryEndpointElement.cs
- EventLogPropertySelector.cs
- InvokerUtil.cs
- TraceData.cs
- ProfileSettings.cs
- ResXFileRef.cs
- TailCallAnalyzer.cs
- IdentityReference.cs
- SQLBinaryStorage.cs
- HtmlForm.cs
- ArcSegment.cs
- ValueSerializerAttribute.cs
- OpenFileDialog.cs
- StateDesigner.cs
- HyperlinkAutomationPeer.cs
- GeometryDrawing.cs
- XmlDsigSep2000.cs
- DeferredTextReference.cs
- QueryOutputWriterV1.cs
- ApplicationFileParser.cs
- QueryReaderSettings.cs
- AnnotationResourceChangedEventArgs.cs
- RectangleConverter.cs
- DataServices.cs
- KnownIds.cs
- WindowsImpersonationContext.cs
- ErrorTableItemStyle.cs
- DataRelation.cs
- ListBindableAttribute.cs
- ArgumentDesigner.xaml.cs
- ListViewInsertedEventArgs.cs
- SqlFlattener.cs
- Repeater.cs
- SelectionRange.cs
- WindowsMenu.cs
- SecurityAccessDeniedException.cs
- EntitySetBaseCollection.cs
- Base64Decoder.cs
- XamlSerializerUtil.cs
- ResXResourceWriter.cs
- ResourceManagerWrapper.cs
- EventLogger.cs
- BrushMappingModeValidation.cs
- EventOpcode.cs
- UnsafeNativeMethods.cs
- UnsafeNetInfoNativeMethods.cs
- DependencyProperty.cs
- HtmlInputImage.cs
- Environment.cs
- AnnotationMap.cs
- CollectionContainer.cs
- ZoneButton.cs
- WorkflowInstance.cs
- Sentence.cs
- AssociationSetMetadata.cs
- InkCollectionBehavior.cs
- IdentitySection.cs
- StaticDataManager.cs
- HierarchicalDataBoundControlAdapter.cs
- DbUpdateCommandTree.cs
- DbConnectionPoolGroup.cs
- WhitespaceRuleLookup.cs
- AnimationStorage.cs
- DataGridTextColumn.cs
- DeferredSelectedIndexReference.cs
- SqlClientPermission.cs
- Executor.cs
- WebPartTransformerCollection.cs
- SolidBrush.cs
- PropertyCondition.cs
- __TransparentProxy.cs
- TextFormatterImp.cs
- OleDbDataAdapter.cs
- UserControl.cs
- PopupEventArgs.cs
- EncryptedData.cs
- AutomationPropertyInfo.cs
- ByteAnimationBase.cs
- Point3DValueSerializer.cs
- SmiMetaDataProperty.cs
- SqlConnectionStringBuilder.cs
- AdRotator.cs
- HttpHandlerActionCollection.cs
- GenericsInstances.cs