Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / PointCollection.cs / 1305600 / 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
- ScrollViewerAutomationPeer.cs
- CaseStatementProjectedSlot.cs
- DataGridComponentEditor.cs
- DelegateSerializationHolder.cs
- WebBrowserEvent.cs
- ToolStripAdornerWindowService.cs
- XsdDateTime.cs
- HostingEnvironment.cs
- DecimalStorage.cs
- MembershipSection.cs
- SharedStatics.cs
- MsmqUri.cs
- LocalServiceSecuritySettingsElement.cs
- LoadWorkflowByKeyAsyncResult.cs
- TokenBasedSet.cs
- RoutedPropertyChangedEventArgs.cs
- recordstate.cs
- CompiledQuery.cs
- MexTcpBindingElement.cs
- IChannel.cs
- MetadataWorkspace.cs
- WrapPanel.cs
- EntityProxyFactory.cs
- unsafeIndexingFilterStream.cs
- SystemThemeKey.cs
- ScrollEvent.cs
- OptionUsage.cs
- TableRow.cs
- PerfCounterSection.cs
- DataViewSetting.cs
- MimeTypeAttribute.cs
- XmlSerializerFactory.cs
- MappedMetaModel.cs
- RadioButtonBaseAdapter.cs
- MediaContextNotificationWindow.cs
- PathTooLongException.cs
- DBConnection.cs
- BulletDecorator.cs
- PropertyGeneratedEventArgs.cs
- EmptyEnumerable.cs
- DataColumnMappingCollection.cs
- CopyCodeAction.cs
- RectConverter.cs
- AnnouncementDispatcherAsyncResult.cs
- ChtmlSelectionListAdapter.cs
- PathFigure.cs
- SizeAnimation.cs
- SplitContainerDesigner.cs
- RequestDescription.cs
- TraceSection.cs
- QilNode.cs
- WebFormsRootDesigner.cs
- SHA384CryptoServiceProvider.cs
- IndentedWriter.cs
- VirtualizingStackPanel.cs
- UIPermission.cs
- SqlDataSourceCommandEventArgs.cs
- SecondaryViewProvider.cs
- BamlLocalizableResourceKey.cs
- XmlSchemaIdentityConstraint.cs
- TextTreeRootNode.cs
- TaskFormBase.cs
- Resources.Designer.cs
- TableStyle.cs
- BoundsDrawingContextWalker.cs
- IndentedWriter.cs
- MimeTypeMapper.cs
- MailAddressCollection.cs
- XPathArrayIterator.cs
- ColumnMapVisitor.cs
- COM2Properties.cs
- OdbcStatementHandle.cs
- BitmapImage.cs
- StylusCollection.cs
- ScriptModule.cs
- MsmqAuthenticationMode.cs
- ColumnMapTranslator.cs
- ThreadStartException.cs
- MemberListBinding.cs
- RectAnimation.cs
- CDSsyncETWBCLProvider.cs
- XmlLoader.cs
- FontUnit.cs
- CFGGrammar.cs
- ByteConverter.cs
- RelationshipFixer.cs
- SplitContainer.cs
- SafeProcessHandle.cs
- AsymmetricKeyExchangeFormatter.cs
- TemplateEditingFrame.cs
- __TransparentProxy.cs
- BamlResourceSerializer.cs
- CorePropertiesFilter.cs
- SqlDataSourceParameterParser.cs
- InputScope.cs
- Pkcs9Attribute.cs
- HttpContextWrapper.cs
- CommandHelpers.cs
- ProfilePropertyNameValidator.cs
- MDIWindowDialog.cs