Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ArrayConverter.cs
- BrowserCapabilitiesFactory.cs
- VectorValueSerializer.cs
- AsymmetricKeyExchangeFormatter.cs
- SerializerDescriptor.cs
- TemplateBuilder.cs
- SynthesizerStateChangedEventArgs.cs
- Emitter.cs
- TableLayoutColumnStyleCollection.cs
- MarshalByRefObject.cs
- ParagraphResult.cs
- ListGeneralPage.cs
- HexParser.cs
- SimpleType.cs
- DocumentGrid.cs
- DataGridSortCommandEventArgs.cs
- IndentedWriter.cs
- LinkedList.cs
- TimersDescriptionAttribute.cs
- sqlcontext.cs
- ParserOptions.cs
- ExceptionHandler.cs
- EventData.cs
- OraclePermission.cs
- ContextMenuService.cs
- TypeConvertions.cs
- DataGridViewLinkColumn.cs
- ConnectionManagementElement.cs
- DbInsertCommandTree.cs
- WebPartCancelEventArgs.cs
- ClientFormsAuthenticationCredentials.cs
- ControlBuilder.cs
- CryptoKeySecurity.cs
- KeySplineConverter.cs
- SQLMoneyStorage.cs
- TraceInternal.cs
- SequenceDesigner.xaml.cs
- DispatchWrapper.cs
- WrapPanel.cs
- NavigationPropertyEmitter.cs
- ParsedAttributeCollection.cs
- DelayedRegex.cs
- FileRecordSequenceCompletedAsyncResult.cs
- MetabaseServerConfig.cs
- TaskHelper.cs
- AnnotationObservableCollection.cs
- ListViewAutomationPeer.cs
- BuildDependencySet.cs
- DBConnection.cs
- RoleExceptions.cs
- MdImport.cs
- TrackBarDesigner.cs
- EntitySqlQueryState.cs
- AuthenticationModuleElementCollection.cs
- CheckBoxPopupAdapter.cs
- OperationInfoBase.cs
- KnownTypesHelper.cs
- AnnotationComponentManager.cs
- SystemThemeKey.cs
- HistoryEventArgs.cs
- DataGridViewCell.cs
- securitymgrsite.cs
- KeyGesture.cs
- Row.cs
- StructuredTypeInfo.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DataGridViewImageColumn.cs
- TextBoxBaseDesigner.cs
- ParentUndoUnit.cs
- TakeOrSkipQueryOperator.cs
- RedirectionProxy.cs
- InlineCollection.cs
- ConfigurationSectionCollection.cs
- AffineTransform3D.cs
- Pair.cs
- BitmapPalettes.cs
- ExceptionUtil.cs
- CodeMethodMap.cs
- Reference.cs
- LogoValidationException.cs
- ColumnReorderedEventArgs.cs
- Point3DCollection.cs
- EntityCommand.cs
- SafeProcessHandle.cs
- DependencyObjectProvider.cs
- DiagnosticsConfigurationHandler.cs
- HwndSource.cs
- OleDbCommand.cs
- ListViewUpdatedEventArgs.cs
- MLangCodePageEncoding.cs
- EncoderReplacementFallback.cs
- LogEntrySerializer.cs
- ProfilePropertyNameValidator.cs
- ContainerVisual.cs
- TreeNodeStyle.cs
- LambdaCompiler.Lambda.cs
- ResizeGrip.cs
- InfiniteIntConverter.cs
- Internal.cs
- DataGridViewCellStyleConverter.cs