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
- Debug.cs
- DiscoveryDocumentLinksPattern.cs
- ByteStreamMessage.cs
- RecordConverter.cs
- SQLInt64Storage.cs
- LockCookie.cs
- Action.cs
- XmlExtensionFunction.cs
- HelpProvider.cs
- DbMetaDataFactory.cs
- InteropAutomationProvider.cs
- ExternalException.cs
- COMException.cs
- XomlDesignerLoader.cs
- BinaryUtilClasses.cs
- XmlDataImplementation.cs
- BlurBitmapEffect.cs
- WindowsSolidBrush.cs
- ProbeMatchesMessageCD1.cs
- FilePresentation.cs
- TextRunCacheImp.cs
- EmbeddedMailObject.cs
- NonBatchDirectoryCompiler.cs
- FileLogRecord.cs
- WebBrowserContainer.cs
- FrameworkElementFactory.cs
- GuidConverter.cs
- CodeTypeReferenceExpression.cs
- SelectorItemAutomationPeer.cs
- RadioButtonStandardAdapter.cs
- PtsPage.cs
- CorePropertiesFilter.cs
- SyndicationCategory.cs
- HtmlCommandAdapter.cs
- SplitterDesigner.cs
- PrimaryKeyTypeConverter.cs
- ControlValuePropertyAttribute.cs
- DefaultValueTypeConverter.cs
- SqlDataSourceCache.cs
- Cursors.cs
- TabControlDesigner.cs
- CompositeActivityMarkupSerializer.cs
- DataGridViewRowStateChangedEventArgs.cs
- Helper.cs
- webeventbuffer.cs
- ImpersonateTokenRef.cs
- TransformerInfo.cs
- MarkupCompilePass1.cs
- ReachSerializationCacheItems.cs
- AssociationSetEnd.cs
- ExtensionWindowResizeGrip.cs
- HttpRequestBase.cs
- Quaternion.cs
- SkewTransform.cs
- ScrollBar.cs
- WindowProviderWrapper.cs
- XmlSchemaCollection.cs
- Touch.cs
- SmtpNtlmAuthenticationModule.cs
- VSWCFServiceContractGenerator.cs
- DataBoundControlHelper.cs
- GradientBrush.cs
- AllMembershipCondition.cs
- TrackBarRenderer.cs
- Span.cs
- TextOptionsInternal.cs
- PropertyToken.cs
- SqlCrossApplyToCrossJoin.cs
- MasterPageCodeDomTreeGenerator.cs
- SmiRecordBuffer.cs
- FilterElement.cs
- DoubleConverter.cs
- ContextMenu.cs
- SchemaCollectionCompiler.cs
- QueryOperator.cs
- RegexEditorDialog.cs
- TerminatingOperationBehavior.cs
- ListViewItemMouseHoverEvent.cs
- StoreUtilities.cs
- IDReferencePropertyAttribute.cs
- SafeSystemMetrics.cs
- TreeViewDesigner.cs
- Win32SafeHandles.cs
- UnsafeNativeMethods.cs
- ConstNode.cs
- CodeCatchClauseCollection.cs
- AuthenticateEventArgs.cs
- CompositeFontFamily.cs
- QueryRewriter.cs
- AppSettingsExpressionBuilder.cs
- NumericExpr.cs
- PathGeometry.cs
- BulletedList.cs
- XmlParserContext.cs
- EmptyStringExpandableObjectConverter.cs
- DecoderReplacementFallback.cs
- WebPartsSection.cs
- HashCodeCombiner.cs
- SafeNativeMethods.cs
- HitTestParameters3D.cs