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
- Tuple.cs
- RequestCacheManager.cs
- Pair.cs
- BooleanConverter.cs
- ModelUIElement3D.cs
- Accessors.cs
- TimerTable.cs
- DtdParser.cs
- ActivityCodeGenerator.cs
- ListBoxItemWrapperAutomationPeer.cs
- XsdBuildProvider.cs
- ObjectViewFactory.cs
- BufferedReadStream.cs
- ArrayWithOffset.cs
- XPathCompileException.cs
- Wizard.cs
- DbConnectionPoolCounters.cs
- ObjectTag.cs
- CategoryGridEntry.cs
- DateTimeValueSerializerContext.cs
- DocumentViewerHelper.cs
- SqlServices.cs
- ObjectStorage.cs
- basecomparevalidator.cs
- LineSegment.cs
- D3DImage.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlBindingWorker.cs
- RoleManagerModule.cs
- NotImplementedException.cs
- Single.cs
- DelegateBodyWriter.cs
- ADConnectionHelper.cs
- WebRequest.cs
- SafeNativeMethods.cs
- PageCache.cs
- ISO2022Encoding.cs
- DoubleAnimationBase.cs
- URLIdentityPermission.cs
- DesignerVerbCollection.cs
- XmlNodeReader.cs
- AuthorizationRuleCollection.cs
- HandlerBase.cs
- TreeViewImageKeyConverter.cs
- Interlocked.cs
- EffectiveValueEntry.cs
- WindowHelperService.cs
- TextDecoration.cs
- TriggerCollection.cs
- HTTPNotFoundHandler.cs
- ProfileElement.cs
- UnionCodeGroup.cs
- ObjectMemberMapping.cs
- FixedSOMImage.cs
- AnimationClock.cs
- InternalConfigEventArgs.cs
- InfocardExtendedInformationEntry.cs
- Repeater.cs
- PackageFilter.cs
- ClientApiGenerator.cs
- FloaterParagraph.cs
- Stream.cs
- MediaTimeline.cs
- BindingExpressionUncommonField.cs
- _SSPIWrapper.cs
- RuleSettings.cs
- LabelDesigner.cs
- CompModSwitches.cs
- XmlSchemaSimpleTypeUnion.cs
- SerializerDescriptor.cs
- RowType.cs
- XmlArrayItemAttributes.cs
- ThreadAttributes.cs
- Brush.cs
- HttpSysSettings.cs
- Encoder.cs
- HtmlShim.cs
- Timer.cs
- ApplicationException.cs
- ChannelManagerBase.cs
- DetailsViewRow.cs
- Util.cs
- ScrollItemPattern.cs
- webproxy.cs
- mediaeventargs.cs
- HMAC.cs
- Image.cs
- TabItemAutomationPeer.cs
- OutputBuffer.cs
- CreateUserWizardStep.cs
- TiffBitmapDecoder.cs
- BaseContextMenu.cs
- DiagnosticsConfiguration.cs
- FilteredReadOnlyMetadataCollection.cs
- DeviceContext2.cs
- ObsoleteAttribute.cs
- QilPatternFactory.cs
- HtmlShim.cs
- StringUtil.cs
- CharEntityEncoderFallback.cs