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
- ImageMapEventArgs.cs
- NameTable.cs
- WebRequestModuleElementCollection.cs
- WindowsFormsLinkLabel.cs
- MemoryRecordBuffer.cs
- XmlSchemaSimpleContent.cs
- SHA512Managed.cs
- BoolExpr.cs
- CultureTable.cs
- ScriptingProfileServiceSection.cs
- CutCopyPasteHelper.cs
- GeneralTransform.cs
- FileDataSourceCache.cs
- ListBox.cs
- AuthenticatingEventArgs.cs
- Header.cs
- BindingList.cs
- QilGeneratorEnv.cs
- IpcPort.cs
- RealProxy.cs
- PartitionedStream.cs
- LocalizationComments.cs
- Material.cs
- AbstractSvcMapFileLoader.cs
- XmlElementAttributes.cs
- ObjectItemCachedAssemblyLoader.cs
- Configuration.cs
- TextTreeUndo.cs
- PerformanceCounterPermissionEntryCollection.cs
- EncoderFallback.cs
- EllipseGeometry.cs
- FtpWebRequest.cs
- XmlNotation.cs
- RewritingValidator.cs
- AuthenticationService.cs
- ImageCodecInfoPrivate.cs
- TabControlAutomationPeer.cs
- SpellerStatusTable.cs
- QilValidationVisitor.cs
- MaskInputRejectedEventArgs.cs
- MimeXmlImporter.cs
- Accessible.cs
- Bidi.cs
- CounterSampleCalculator.cs
- FieldDescriptor.cs
- ParameterDataSourceExpression.cs
- ToolStripItemCollection.cs
- NamedPipeDuplicateContext.cs
- SqlHelper.cs
- BinaryWriter.cs
- TraceListener.cs
- GeometryModel3D.cs
- DataControlPagerLinkButton.cs
- GradientSpreadMethodValidation.cs
- BatchParser.cs
- ViewStateException.cs
- ReachFixedDocumentSerializer.cs
- CompilerError.cs
- SqlGenericUtil.cs
- ProfileSection.cs
- WorkflowWebService.cs
- DataList.cs
- BaseTemplateParser.cs
- SymbolPair.cs
- Event.cs
- TextTreeRootNode.cs
- CachedBitmap.cs
- CodeDomConfigurationHandler.cs
- StoreItemCollection.Loader.cs
- XmlAnyAttributeAttribute.cs
- CaseInsensitiveComparer.cs
- ClickablePoint.cs
- _CacheStreams.cs
- DSASignatureDeformatter.cs
- DataGridViewTextBoxEditingControl.cs
- StructuralType.cs
- RectKeyFrameCollection.cs
- DefaultAsyncDataDispatcher.cs
- ServiceBusyException.cs
- PublishLicense.cs
- SimpleWorkerRequest.cs
- WindowShowOrOpenTracker.cs
- WpfPayload.cs
- Label.cs
- HwndAppCommandInputProvider.cs
- InkCanvasAutomationPeer.cs
- BitmapEffectGroup.cs
- ReadOnlyActivityGlyph.cs
- SqlGatherConsumedAliases.cs
- FontWeight.cs
- CryptographicAttribute.cs
- DecimalConstantAttribute.cs
- GridViewActionList.cs
- PipelineModuleStepContainer.cs
- CoTaskMemSafeHandle.cs
- ButtonBase.cs
- WorkflowValidationFailedException.cs
- StreamSecurityUpgradeProvider.cs
- ValidationEventArgs.cs
- SqlDependencyListener.cs