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
- CharacterBuffer.cs
- CollectionDataContract.cs
- ConfigurationValue.cs
- XmlSchemaElement.cs
- RunWorkerCompletedEventArgs.cs
- WebPartDescriptionCollection.cs
- Brush.cs
- UnitControl.cs
- OdbcErrorCollection.cs
- ToolStripSeparator.cs
- ProfileGroupSettings.cs
- DataGrid.cs
- DataGridLength.cs
- Composition.cs
- SqlDependencyUtils.cs
- LayoutUtils.cs
- ObjectItemAttributeAssemblyLoader.cs
- SBCSCodePageEncoding.cs
- XmlSchemaAny.cs
- TypeExtensionConverter.cs
- PeerNameRecord.cs
- _BaseOverlappedAsyncResult.cs
- XD.cs
- MgmtResManager.cs
- XPathSelfQuery.cs
- SafeMILHandle.cs
- DrawingBrush.cs
- TypeHelpers.cs
- HttpInputStream.cs
- SemanticAnalyzer.cs
- DataContext.cs
- Double.cs
- StateItem.cs
- bindurihelper.cs
- WebCodeGenerator.cs
- TypedReference.cs
- EntityCommand.cs
- UriPrefixTable.cs
- PointCollection.cs
- FindCriteriaCD1.cs
- EntityDataSourceSelectingEventArgs.cs
- CommonProperties.cs
- AxImporter.cs
- LinkDescriptor.cs
- sqlinternaltransaction.cs
- XmlSchemaValidator.cs
- PopOutPanel.cs
- OleDbConnection.cs
- DataGridViewDataErrorEventArgs.cs
- iisPickupDirectory.cs
- SpellerError.cs
- LinkDescriptor.cs
- IImplicitResourceProvider.cs
- ComponentRenameEvent.cs
- HashRepartitionStream.cs
- GeometryDrawing.cs
- InfoCardTrace.cs
- ToolboxItem.cs
- ContainerControlDesigner.cs
- DynamicMetaObjectBinder.cs
- BoundPropertyEntry.cs
- LongValidator.cs
- KeyGestureConverter.cs
- HandlerFactoryCache.cs
- CalendarTable.cs
- TreeBuilderXamlTranslator.cs
- DataGridAddNewRow.cs
- _Events.cs
- BinaryReader.cs
- SecurityChannelListener.cs
- ModelItemDictionary.cs
- EventLogQuery.cs
- CodeCastExpression.cs
- InstanceDataCollection.cs
- ComponentCollection.cs
- TypeConverterAttribute.cs
- ToolStripSplitStackLayout.cs
- ContainerParaClient.cs
- AccessibleObject.cs
- OlePropertyStructs.cs
- XappLauncher.cs
- XLinq.cs
- FixedTextSelectionProcessor.cs
- DataTemplateKey.cs
- PropertyInformation.cs
- Win32Exception.cs
- IdentifierService.cs
- IUnknownConstantAttribute.cs
- BinaryFormatter.cs
- MissingManifestResourceException.cs
- RemotingConfiguration.cs
- CapabilitiesRule.cs
- XmlParserContext.cs
- SafeLibraryHandle.cs
- ZoneMembershipCondition.cs
- Number.cs
- COM2ExtendedUITypeEditor.cs
- AutomationPattern.cs
- RegexReplacement.cs
- LayoutDump.cs