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
- CachingHintValidation.cs
- PropertyMap.cs
- Point3DCollection.cs
- VariableDesigner.xaml.cs
- DelayedRegex.cs
- GlyphTypeface.cs
- RangeValuePattern.cs
- EntitySqlQueryBuilder.cs
- SQLSingleStorage.cs
- MetadataItem.cs
- WindowsAuthenticationEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- FixedDSBuilder.cs
- Int32AnimationBase.cs
- ExcCanonicalXml.cs
- PathFigureCollectionValueSerializer.cs
- HtmlTableRow.cs
- HwndHost.cs
- DbInsertCommandTree.cs
- MobileControlBuilder.cs
- UnmanagedMemoryStream.cs
- RuntimeConfigLKG.cs
- SequenceQuery.cs
- EntityDataSourceWizardForm.cs
- ExceptionValidationRule.cs
- DataBoundLiteralControl.cs
- StaticResourceExtension.cs
- DetailsViewInsertedEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- VisualStyleInformation.cs
- RefreshEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- AttributeTableBuilder.cs
- MasterPageCodeDomTreeGenerator.cs
- Parser.cs
- HashHelper.cs
- DrawingGroup.cs
- FrugalList.cs
- UIElement.cs
- DefaultAssemblyResolver.cs
- StorageRoot.cs
- ModelPerspective.cs
- Rectangle.cs
- SerializationObjectManager.cs
- ProcessModelSection.cs
- RadioButton.cs
- Serialization.cs
- NameValuePair.cs
- SqlProcedureAttribute.cs
- StringKeyFrameCollection.cs
- CredentialManagerDialog.cs
- ChildrenQuery.cs
- EntityStoreSchemaFilterEntry.cs
- SqlRowUpdatingEvent.cs
- CodeActivityContext.cs
- SafeFileHandle.cs
- Suspend.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DynamicDiscoSearcher.cs
- FileUpload.cs
- followingsibling.cs
- DelegateBodyWriter.cs
- ValueSerializerAttribute.cs
- BamlLocalizationDictionary.cs
- ApplicationServiceManager.cs
- NameValueFileSectionHandler.cs
- VarInfo.cs
- ReferenceSchema.cs
- TextTreeDeleteContentUndoUnit.cs
- TargetException.cs
- TagMapInfo.cs
- LocatorGroup.cs
- DocumentScope.cs
- Configuration.cs
- SafeEventLogWriteHandle.cs
- MulticastOption.cs
- TextTreeTextNode.cs
- X509Utils.cs
- glyphs.cs
- SpellerError.cs
- PropertyCollection.cs
- HtmlString.cs
- EntityContainerAssociationSetEnd.cs
- SqlFunctions.cs
- DiagnosticStrings.cs
- WebPartCatalogAddVerb.cs
- CryptoProvider.cs
- ConfigurationSectionGroup.cs
- DesignerDataRelationship.cs
- figurelengthconverter.cs
- TagMapInfo.cs
- CommandID.cs
- PlatformCulture.cs
- RegisteredDisposeScript.cs
- DataFormats.cs
- HttpAsyncResult.cs
- SizeF.cs
- ToolboxItemCollection.cs
- EnvironmentPermission.cs
- XmlWellformedWriterHelpers.cs