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
- ToolStripItemImageRenderEventArgs.cs
- DoubleLinkListEnumerator.cs
- PropertyGeneratedEventArgs.cs
- MailWebEventProvider.cs
- CurrentChangingEventArgs.cs
- InstanceNormalEvent.cs
- MatrixTransform.cs
- LingerOption.cs
- ErrorProvider.cs
- CharAnimationBase.cs
- AccessKeyManager.cs
- ActiveDesignSurfaceEvent.cs
- CodeMemberProperty.cs
- Binding.cs
- CodeSnippetTypeMember.cs
- BidPrivateBase.cs
- BorderGapMaskConverter.cs
- EventDriven.cs
- COM2ComponentEditor.cs
- DataGridViewButtonCell.cs
- CrossAppDomainChannel.cs
- InputDevice.cs
- XMLUtil.cs
- RotateTransform3D.cs
- ListControl.cs
- ActionMessageFilterTable.cs
- SafeNativeMethodsOther.cs
- OdbcErrorCollection.cs
- GifBitmapEncoder.cs
- BoundPropertyEntry.cs
- DataGridViewRowConverter.cs
- ListViewDataItem.cs
- ContainerUtilities.cs
- FocusTracker.cs
- _FixedSizeReader.cs
- SafeBitVector32.cs
- SqlBuilder.cs
- DataGridViewColumnDesigner.cs
- CurrencyWrapper.cs
- WindowsPrincipal.cs
- XamlClipboardData.cs
- FontUnit.cs
- RequestQueryParser.cs
- CodeAccessPermission.cs
- Profiler.cs
- KeyProperty.cs
- SoapEnumAttribute.cs
- ToolstripProfessionalRenderer.cs
- ThreadInterruptedException.cs
- Grant.cs
- WindowsToolbarItemAsMenuItem.cs
- TextAnchor.cs
- TextSyndicationContentKindHelper.cs
- RangeContentEnumerator.cs
- AlphaSortedEnumConverter.cs
- BindingList.cs
- NotFiniteNumberException.cs
- JsonSerializer.cs
- DataControlField.cs
- SoapAttributeOverrides.cs
- TreeNodeBinding.cs
- ParenthesizePropertyNameAttribute.cs
- XmlCharacterData.cs
- DrawingCollection.cs
- EqualityComparer.cs
- TransformationRules.cs
- WeakReference.cs
- BindingListCollectionView.cs
- XmlAnyAttributeAttribute.cs
- TraceUtils.cs
- SymbolMethod.cs
- DBDataPermission.cs
- List.cs
- QilInvoke.cs
- Atom10FormatterFactory.cs
- UInt32.cs
- ReferencedType.cs
- ConstantProjectedSlot.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataTemplateKey.cs
- TextViewElement.cs
- CodeMemberField.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ListBase.cs
- VisualStates.cs
- ControlPaint.cs
- WebServiceData.cs
- ErrorTableItemStyle.cs
- ImageButton.cs
- SamlNameIdentifierClaimResource.cs
- GAC.cs
- OleDbPermission.cs
- _ListenerResponseStream.cs
- XpsSerializationManagerAsync.cs
- xmlformatgeneratorstatics.cs
- Statements.cs
- TimeStampChecker.cs
- ExceptionCollection.cs
- DataFieldConverter.cs
- SchemaObjectWriter.cs