Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HttpChannelHelpers.cs
- ColorPalette.cs
- BinaryCommonClasses.cs
- ReachDocumentSequenceSerializerAsync.cs
- FixedTextContainer.cs
- SqlTrackingService.cs
- DataObjectPastingEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- CodePageEncoding.cs
- FrameworkRichTextComposition.cs
- TemplateBindingExtensionConverter.cs
- SmtpNtlmAuthenticationModule.cs
- PageThemeBuildProvider.cs
- FontStyle.cs
- HostSecurityManager.cs
- ImportedNamespaceContextItem.cs
- Size.cs
- DbConnectionPoolGroup.cs
- CapabilitiesAssignment.cs
- AssemblyAssociatedContentFileAttribute.cs
- NoneExcludedImageIndexConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- WebPartsSection.cs
- WindowsRichEdit.cs
- UnsafeMethods.cs
- Wizard.cs
- PortCache.cs
- DictionarySurrogate.cs
- BezierSegment.cs
- StorageModelBuildProvider.cs
- AnonymousIdentificationModule.cs
- LinkClickEvent.cs
- CompilationUtil.cs
- Classification.cs
- ToolStripControlHost.cs
- ToolTipAutomationPeer.cs
- InstanceKeyNotReadyException.cs
- OleDbMetaDataFactory.cs
- SQLChars.cs
- Queue.cs
- sortedlist.cs
- OLEDB_Enum.cs
- UpDownBase.cs
- TypeToken.cs
- CharacterShapingProperties.cs
- MarshalByRefObject.cs
- ComAdminWrapper.cs
- filewebrequest.cs
- PropertyCollection.cs
- Int32RectValueSerializer.cs
- BasicHttpSecurityMode.cs
- ExtendedProtectionPolicy.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlElementElementCollection.cs
- HostedNamedPipeTransportManager.cs
- ReservationCollection.cs
- NativeObjectSecurity.cs
- XmlDictionary.cs
- XmlAtomicValue.cs
- HttpException.cs
- WebBrowserDocumentCompletedEventHandler.cs
- _NativeSSPI.cs
- BinHexEncoder.cs
- DragEvent.cs
- ExpandedProjectionNode.cs
- HashMembershipCondition.cs
- DocComment.cs
- TableAutomationPeer.cs
- BooleanFunctions.cs
- EmptyEnumerable.cs
- DataBinding.cs
- InkCanvasFeedbackAdorner.cs
- ComponentEditorForm.cs
- ColorMap.cs
- DataBindingValueUIHandler.cs
- MsmqException.cs
- CalendarKeyboardHelper.cs
- CqlParserHelpers.cs
- SchemaImporter.cs
- CheckableControlBaseAdapter.cs
- TraceSource.cs
- XmlILStorageConverter.cs
- RectValueSerializer.cs
- ThousandthOfEmRealDoubles.cs
- RowsCopiedEventArgs.cs
- FilteredAttributeCollection.cs
- GenericAuthenticationEventArgs.cs
- TableStyle.cs
- JsonReader.cs
- BinaryParser.cs
- ListViewGroup.cs
- AddValidationError.cs
- AstTree.cs
- PathTooLongException.cs
- ListDictionaryInternal.cs
- EventRoute.cs
- EntityWrapperFactory.cs
- UserCancellationException.cs
- XmlQuerySequence.cs
- oledbmetadatacolumnnames.cs