Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Switch.cs
- EqualityComparer.cs
- TextMetrics.cs
- AuthenticationModulesSection.cs
- GuidTagList.cs
- DoubleKeyFrameCollection.cs
- HttpsTransportElement.cs
- TrustLevelCollection.cs
- WebServiceEnumData.cs
- Oci.cs
- Evidence.cs
- VBCodeProvider.cs
- SmiGettersStream.cs
- mactripleDES.cs
- CodeArgumentReferenceExpression.cs
- GenericEnumerator.cs
- MethodBuilderInstantiation.cs
- FlowDocumentScrollViewer.cs
- TagNameToTypeMapper.cs
- SqlDataSourceView.cs
- AppDomainManager.cs
- validation.cs
- DebugView.cs
- MessageSmuggler.cs
- PrintDialog.cs
- FileDialogCustomPlace.cs
- ThrowOnMultipleAssignment.cs
- CodeIterationStatement.cs
- ApplicationDirectory.cs
- Documentation.cs
- DetailsViewUpdatedEventArgs.cs
- DelegateSerializationHolder.cs
- PageParser.cs
- DocumentGridPage.cs
- WindowsSpinner.cs
- Send.cs
- StorageModelBuildProvider.cs
- UIElementCollection.cs
- HttpListenerRequest.cs
- DateTimeFormat.cs
- ObjectAnimationUsingKeyFrames.cs
- TCPClient.cs
- GeneralTransformGroup.cs
- TypedTableBase.cs
- DataGridCell.cs
- DbConnectionPool.cs
- XPathArrayIterator.cs
- NavigatorInput.cs
- TextMetrics.cs
- InstanceKeyNotReadyException.cs
- ObjectDataSource.cs
- DependencyPropertyHelper.cs
- DocumentPaginator.cs
- SignatureToken.cs
- MdiWindowListStrip.cs
- ByeOperation11AsyncResult.cs
- DateTimeOffset.cs
- StylusButtonCollection.cs
- IPipelineRuntime.cs
- TemplateBindingExpression.cs
- ContravarianceAdapter.cs
- Blend.cs
- SafeHandles.cs
- Facet.cs
- RowToFieldTransformer.cs
- CacheRequest.cs
- QueryAccessibilityHelpEvent.cs
- CalendarDataBindingHandler.cs
- LogReserveAndAppendState.cs
- XsltArgumentList.cs
- ConditionCollection.cs
- DefaultIfEmptyQueryOperator.cs
- CodeDefaultValueExpression.cs
- DiagnosticsConfiguration.cs
- LZCodec.cs
- RelationshipType.cs
- SimpleHandlerFactory.cs
- InkPresenter.cs
- DataGridViewRowEventArgs.cs
- UpdatableGenericsFeature.cs
- ProcessStartInfo.cs
- Int32AnimationBase.cs
- LocalizeDesigner.cs
- FunctionMappingTranslator.cs
- isolationinterop.cs
- BindingSource.cs
- FormViewModeEventArgs.cs
- EdmProperty.cs
- DecoderReplacementFallback.cs
- MarkupProperty.cs
- TableCell.cs
- XmlQueryCardinality.cs
- Win32SafeHandles.cs
- StyleTypedPropertyAttribute.cs
- XmlElementList.cs
- PageRequestManager.cs
- SystemTcpConnection.cs
- RemotingServices.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlSequenceWriter.cs