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
- DataGridBoolColumn.cs
- HyperLinkField.cs
- Label.cs
- Transform3DCollection.cs
- CompModHelpers.cs
- TabItemAutomationPeer.cs
- sqlmetadatafactory.cs
- Switch.cs
- TextProviderWrapper.cs
- DBParameter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- HttpBindingExtension.cs
- CodeParameterDeclarationExpression.cs
- DockPanel.cs
- ConfigXmlAttribute.cs
- ComboBox.cs
- NullableIntMinMaxAggregationOperator.cs
- DataGridViewColumnHeaderCell.cs
- MarkupWriter.cs
- InputBindingCollection.cs
- SqlServices.cs
- MutableAssemblyCacheEntry.cs
- PublisherMembershipCondition.cs
- XmlSerializerAssemblyAttribute.cs
- ObjectListComponentEditor.cs
- SessionEndingEventArgs.cs
- SqlFacetAttribute.cs
- ECDiffieHellman.cs
- Lock.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SerializationTrace.cs
- ResourceContainer.cs
- CountdownEvent.cs
- SplineQuaternionKeyFrame.cs
- DbDataReader.cs
- RuntimeArgumentHandle.cs
- QuadraticEase.cs
- ProxyAttribute.cs
- LinearGradientBrush.cs
- ScrollViewerAutomationPeer.cs
- BindingCollectionElement.cs
- XamlLoadErrorInfo.cs
- ItemList.cs
- ErrorEventArgs.cs
- WebControlsSection.cs
- DbReferenceCollection.cs
- TabRenderer.cs
- ControlIdConverter.cs
- FileCodeGroup.cs
- XmlSortKeyAccumulator.cs
- SuppressMessageAttribute.cs
- CodeSubDirectoriesCollection.cs
- WebScriptEnablingBehavior.cs
- Site.cs
- BaseProcessor.cs
- TargetFrameworkUtil.cs
- TouchDevice.cs
- PenThread.cs
- CompositeScriptReferenceEventArgs.cs
- SqlParameterizer.cs
- UnsafeNativeMethods.cs
- PersonalizationStateInfo.cs
- CodeGenerator.cs
- SharedPerformanceCounter.cs
- XmlSchemaComplexContentRestriction.cs
- MemberInfoSerializationHolder.cs
- ConfigurationSection.cs
- KoreanCalendar.cs
- XamlSerializationHelper.cs
- FramingDecoders.cs
- IDispatchConstantAttribute.cs
- EditableRegion.cs
- FragmentNavigationEventArgs.cs
- ImageIndexConverter.cs
- EDesignUtil.cs
- SmtpException.cs
- ServiceRouteHandler.cs
- ToolStripManager.cs
- HttpFormatExtensions.cs
- WebScriptEndpointElement.cs
- EntityContainerEmitter.cs
- ReadWriteSpinLock.cs
- SpeechEvent.cs
- OptimizerPatterns.cs
- HttpHandlersSection.cs
- GlyphManager.cs
- TextDecorationCollectionConverter.cs
- SyndicationContent.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- HyperLinkField.cs
- WebPartZoneCollection.cs
- FormViewUpdateEventArgs.cs
- DbConnectionInternal.cs
- GroupItem.cs
- ServiceControllerDesigner.cs
- TableColumnCollection.cs
- RemoteEndpointMessageProperty.cs
- TreeViewHitTestInfo.cs
- EncoderExceptionFallback.cs
- XPathMultyIterator.cs