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
- Point3DIndependentAnimationStorage.cs
- Icon.cs
- Semaphore.cs
- SafePEFileHandle.cs
- ObjectNotFoundException.cs
- XmlUtf8RawTextWriter.cs
- XmlWrappingReader.cs
- TreeViewAutomationPeer.cs
- WebPartCatalogAddVerb.cs
- EdmType.cs
- XamlStream.cs
- ArrayConverter.cs
- TreeWalkHelper.cs
- ServiceChannelFactory.cs
- DesignTimeHTMLTextWriter.cs
- COSERVERINFO.cs
- SystemFonts.cs
- ListMarkerSourceInfo.cs
- SelectorAutomationPeer.cs
- LocalizationParserHooks.cs
- PointAnimationClockResource.cs
- ConnectionsZone.cs
- InkCanvasAutomationPeer.cs
- TimeSpan.cs
- Int64Animation.cs
- DesignerAttribute.cs
- BitmapPalette.cs
- LassoSelectionBehavior.cs
- ShaderEffect.cs
- CheckBox.cs
- ConsoleKeyInfo.cs
- SortDescriptionCollection.cs
- StyleCollection.cs
- ArrayItemReference.cs
- ZoneButton.cs
- HttpWebRequest.cs
- UriParserTemplates.cs
- PixelShader.cs
- EventDescriptor.cs
- SQLString.cs
- StyleCollection.cs
- SqlAggregateChecker.cs
- LicenseManager.cs
- SqlDuplicator.cs
- TdsParserSessionPool.cs
- MultipartIdentifier.cs
- DBCommandBuilder.cs
- TreeIterator.cs
- AspNetHostingPermission.cs
- DependencyPropertyAttribute.cs
- Win32PrintDialog.cs
- ValuePattern.cs
- Menu.cs
- SendMailErrorEventArgs.cs
- RenderTargetBitmap.cs
- FontEmbeddingManager.cs
- SecurityProtocol.cs
- ISFTagAndGuidCache.cs
- Helper.cs
- ClientRuntime.cs
- NotifyInputEventArgs.cs
- PackageRelationshipSelector.cs
- ToggleButton.cs
- TileBrush.cs
- DbParameterHelper.cs
- Constraint.cs
- ConfigXmlElement.cs
- COM2ComponentEditor.cs
- CngKeyBlobFormat.cs
- ColumnReorderedEventArgs.cs
- GeneralTransform3D.cs
- ParserContext.cs
- EncryptedData.cs
- RightsManagementEncryptionTransform.cs
- StrongNameUtility.cs
- OdbcConnectionStringbuilder.cs
- DiagnosticTrace.cs
- HttpContextWrapper.cs
- NonBatchDirectoryCompiler.cs
- HybridDictionary.cs
- ValueCollectionParameterReader.cs
- SourceSwitch.cs
- ConfigXmlComment.cs
- LostFocusEventManager.cs
- AnnotationObservableCollection.cs
- ArrayExtension.cs
- TypeResolvingOptionsAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- ContentTextAutomationPeer.cs
- EnumConverter.cs
- DataColumnMappingCollection.cs
- ActivationWorker.cs
- CredentialCache.cs
- ResolveRequestResponseAsyncResult.cs
- ScrollProperties.cs
- SqlReorderer.cs
- BuildProvider.cs
- EditableTreeList.cs
- MsmqOutputSessionChannel.cs
- WebColorConverter.cs